mirror of
https://github.com/cydrobolt/polr.git
synced 2024-09-19 23:21:47 +02:00
return 404 http status for missing links
This commit is contained in:
parent
c62f51476f
commit
09724050c2
@ -51,7 +51,7 @@ class Handler extends ExceptionHandler {
|
|||||||
return redirect()->to(env('SETTING_INDEX_REDIRECT'));
|
return redirect()->to(env('SETTING_INDEX_REDIRECT'));
|
||||||
}
|
}
|
||||||
// Otherwise, show a nice error page
|
// Otherwise, show a nice error page
|
||||||
return view('errors.404');
|
return response(view('errors.404'), 404);
|
||||||
}
|
}
|
||||||
if ($e instanceof HttpException) {
|
if ($e instanceof HttpException) {
|
||||||
// Handle HTTP exceptions thrown by public-facing controllers
|
// Handle HTTP exceptions thrown by public-facing controllers
|
||||||
|
Loading…
Reference in New Issue
Block a user