-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change the way url param works #9
Comments
I agree. it is annoying that locale param is automatically added to every link. This should only be used when switching between locales and should probably set a session variable to save the choice |
+1 Also would there be a way to make URLs look prettier? So instead of:
They will always be:
|
@assimovt you can still achieve this and use this gem. To do this, you need to setup your routes with a locale scope or simply use this other gem (works in compliment with locale_setter): https://github.com/svenfuchs/routing-filter |
+1 for this |
Hi,
I think that the current solution for the url param is a little bit misleading, for example:
Current realisation is:
If I am using the site's default locale then all is ok, but if any of my users have a different locale via db
locale
column (or domain, not so matter) then all links will have alocale
param. I think that this is polluting url because we already setup locale via different source.So I think that maybe is better to add
locale
param if only it is already exists in url without any checks to the locale.And then workflow will be like this:
locale
param to url (or clicks a link that will force it)locale
paramIf this is ok and I haven't missed something, then I'll provide a solution for this.
The text was updated successfully, but these errors were encountered: