Make default 404 page use 404 status code
This commit is contained in:
parent
af4f42e208
commit
2350e30853
|
|
@ -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…
Reference in New Issue