Skip to content

Commit

Permalink
Merge branch '7' into 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 10, 2024
2 parents d174925 + 19d9b1c commit 1c5fc91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Middleware/LocaleSwitchRedirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function process(HTTPRequest $request, callable $delegate)
if ($response->getStatusCode() === 404
&& !$state->getIsFrontend()
&& $this->getParamLocale($request)
&& !$request->getVar('CMSPreview')
) {
// Redirect to the CMS home page if the requested page doesn't exist
$response = new HTTPResponse();
Expand Down

0 comments on commit 1c5fc91

Please sign in to comment.