-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't resolve paths to non-existent routes
If the resolved path for a given locale is 404 then don't attempt to change the path to locale specific. Avoids redirecting unnecessarily to a route that doesn't exist anyway. That also fixes the security issue with redirecting to a different domain but just in case added an additional measure against that. Resolves #1092
- Loading branch information
Showing
2 changed files
with
1 addition
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters