Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #35735 [Routing] Add locale requirement for localized routes (mta…
…rld) This PR was merged into the 4.4 branch. Discussion ---------- [Routing] Add locale requirement for localized routes | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT 4.4 version of #35692 If you're using localized routes, you expect to have these kind of routes available: - `/fr/accueil` - `/en/home` But nowadays, these routes are unexpectedly available: - `/en/accueil` - `/fr/home` When importing routes like that: - `prefix: "/{_locale}"` - `@Route({"en": "/home", "fr": "/accueil"}, name="home")` This PR proposes to add a strict locale requirement for localized so that the above routes won't be available. Commits ------- 50d7445 [Routing] Add locale requirement for localized routes
- Loading branch information
Showing
8 changed files
with
22 additions
and
5 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
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
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