mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #1723 from Herlevsen/develop
Make default 404 page use 404 status code
This commit is contained in:
commit
43f1ce7734
@ -190,7 +190,7 @@ class Controller
|
||||
/*
|
||||
* If the page was not found, render the 404 page - either provided by the theme or the built-in one.
|
||||
*/
|
||||
if (!$page) {
|
||||
if (!$page || $url === '404') {
|
||||
$this->setStatusCode(404);
|
||||
|
||||
// Log the 404 request
|
||||
|
Loading…
x
Reference in New Issue
Block a user