-
Notifications
You must be signed in to change notification settings - Fork 469
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 apply any locale-logic to non-existent routes (#1093)
If the resolved path for a given locale is 404 then return resolved route based on the original path input rather than the locale-adjusted path. This affects redirects on locale change, page load, and the behavior of localePath and localeRoute APIs. 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
3 changed files
with
17 additions
and
12 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
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