-
-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of i18n lookup table changes to 4.x, fixes misc url_for issu…
…es (#2604) * Improved lookup table backport to 4.x Lookup table implementation backported from master. This solves a bug where fully localized templates links can't be generated by url_for and link_to helper methods. * Fix lookup with "mount_at_root: false" Helper methods url_for and link_to could not get the correct paths when mount config option was set to "false". Fixed it by adding an unlocalized path to the lookup table. * Added url_for test with "mount_at_root: false" New test to make sure "mount_at_root: false" works as intended, includes previously failing case of fully localized templates (e.g.: hello.en.html.erb). --------- Co-authored-by: phernandez <pedrohdezmlg@gmail.com>
- Loading branch information
1 parent
1c27291
commit ae5581e
Showing
2 changed files
with
152 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