1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-18 19:52:26 +02:00

return 404 http status for missing links

This commit is contained in:
Konstantin Zamyakin 2018-02-11 22:46:29 +03:00
parent c62f51476f
commit 09724050c2

View File

@ -51,7 +51,7 @@ class Handler extends ExceptionHandler {
return redirect()->to(env('SETTING_INDEX_REDIRECT'));
}
// Otherwise, show a nice error page
return view('errors.404');
return response(view('errors.404'), 404);
}
if ($e instanceof HttpException) {
// Handle HTTP exceptions thrown by public-facing controllers