- Issue created by @muriqui
- Merge request !52Issue #3495075: Fix 404 responses in ConfigSplitDiffController::diff. β (Open) created by muriqui
In ConfigSplitDiffController::diff()
if the requested split is not found or the operation is unknown, it returns $this->redirect('system.404');
. This has the effect of redirecting you to the system 404 page, but generates HTTP responses of 302 (for the redirect) and then 200 (for arriving at the page), when it should instead generate code 404.
Expected result: HTTP 404
Actual result: HTTP 302 for the initial request, followed by HTTP 200 for the 404 page (/system/404).
Throw NotFoundHttpException
instead.
Active
2.0
Code