-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix adding link to page when switch locale in administration #1583
Conversation
cc @ugisozols @simi Any tests that would help here? Thanks! |
@vita can you write some scenario why this is needed? I'll write test and test it. |
@simi: when switch locale (to :cs, :en is default) on edit page and add link to page then wymeditor insert bad link ("/cs/about-en", correct is "/cs/about-cs"). ::I18n.locale = :cs
@page.nested_path => "/about-cs"
::I18n.locale = :en
@page.nested_path => "/about-en"
Globalize.locale = :cs
@page.nested_path => "/about-en"
Globalize.locale = :en
@page.nested_path => "/about-en" |
Thanks guys |
@travisbot welcome |
@simi it's truly awesome huh :-) |
@simi do you still plan to write a test for this? |
Fix adding link to page when switch locale in administration
I'm using 2.0.8 and I'm still having this issue. I get a 404 from this URL |
No description provided.