Skip to content

Commit

Permalink
return 404 http status for missing links
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0rp10 committed Feb 11, 2018
1 parent c62f514 commit 0972405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ public function render($request, Exception $e)
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
Expand Down

0 comments on commit 0972405

Please sign in to comment.