-
Notifications
You must be signed in to change notification settings - Fork 143
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
Avoid generating duplicate routes? #87
Comments
This should be possible via |
However, the README states:
What's the reasoning behind this? Would being able to set |
@lime you are right, because I was not and I'm not using this solution for the very same reason. This is my approach:
RouteTranslator.config do |config|
config.hide_locale = true
end
|
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fix: #87
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fix: #87
Fixed in the just released 6.0.0.alpha1 |
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fix: #87
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fix: #87
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fix: #87
The purpose of this refactor is to avoid duplicate routes. Previously, route_translator allowed duplicate routes `/cars` and `/en/cars` under the `en` domain when `host_locales` was set. Fixes enriclluelles#87 and fixes enriclluelles#171
When using
host_locales
, many routes get duplicated, e.g. I havein a
localized
block inroutes.rb
. This results in (withavailable_locales = :de, :en
)If both
/de/blah
and/blah
are accessible under the German domain with the same content, this will result in duplicate content penalties in search engines. Can I drop the "native" routes?The text was updated successfully, but these errors were encountered: