You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like the setting of the I18n.locale based on the domain. I have implemented it via before_filter in my ApplicationController. It means I don't need the :locale in URLs like example-en.com/en/products , example-fr.com/fr/products ... The reason why I don't want this is that it makes duplication of the URLs (example-en.com/products and example-en.com/en/products two URLs with the same content) which is bad for SEO. Can I somehow switch off the routing with :local parametr? THX in advance
The text was updated successfully, but these errors were encountered:
but this solution breaks links in the app. Can you recommend me some better solution...? :-) Probably the best is overwrite somehow spree_i18n/config/routes.rb , but I don't know where I have to place my version of this file to be loaded as the preferred one.
I would like the setting of the I18n.locale based on the domain. I have implemented it via before_filter in my ApplicationController. It means I don't need the :locale in URLs like example-en.com/en/products , example-fr.com/fr/products ... The reason why I don't want this is that it makes duplication of the URLs (example-en.com/products and example-en.com/en/products two URLs with the same content) which is bad for SEO. Can I somehow switch off the routing with :local parametr? THX in advance
The text was updated successfully, but these errors were encountered: