You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When throwing a Kirby\Exception\NotFoundException, an error page is rendered as if an internal server error would have happened with an http status code of 500.
Expected behavior
Render the 404 page, with a 404 http status code.
To reproduce
Take the Kirby Starter Kit
Add the following to the config:
'routes' => [
[
'pattern' => 'test',
'action' => function () {
throw new NotFoundException();
}
]
]
In this last case, the NotFoundException is thrown from Kirby internally with the message "The thumbnail configuration could not be found".
I'm not sure if I should report a separate bug, because you can basically enter anything starting with http://localhost/media/pages/photography/trees/... and it will log a NotFoundException, even though it should just render a normal 404 page without logging anything.
Your setup
Kirby Version
Latest version 4.2.0
OS: Linux
Browser: Firefox
Version: 126
The text was updated successfully, but these errors were encountered:
Description
When throwing a
Kirby\Exception\NotFoundException
, an error page is rendered as if an internal server error would have happened with an http status code of 500.Expected behavior
Render the 404 page, with a 404 http status code.
To reproduce
Or alternatively
site/controllers/notes.php
to includethrow new NotFoundException();
right at the beginning of the returned function.Or even worse
In this last case, the NotFoundException is thrown from Kirby internally with the message "The thumbnail configuration could not be found".
I'm not sure if I should report a separate bug, because you can basically enter anything starting with
http://localhost/media/pages/photography/trees/...
and it will log a NotFoundException, even though it should just render a normal 404 page without logging anything.Your setup
Kirby Version
Latest version 4.2.0
The text was updated successfully, but these errors were encountered: