-
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
where is the generate_unnamed_unlocalized_routes redirect? #110
Comments
Nevermind. I think I understood what I needed to do. I am now using:
and added this to my application_controller.rb:
This seems to get the trick of detecting users preferred language and then redirect to appropriate URL. Every URL is locale prefixed so which is good for SEO. Please let me know if you think this is OK. Thanks for the good job! |
I think your request is legit. I have no idea of that feature, but I understand the Readme as you do. I'm going to reopen this one Tests don't help: route_translator/test/routing_test.rb Line 403 in e62be7f
|
@AlexEscalante Your snippet doesn't seem to work I get:
The gem is great but I haven't been able to work out how to enforce always having /locale/ prepend all my paths. I want the app to 404 (or at least redirect to default locale) if paths are entered without an appropriate locale. Any ideas? Edit:
|
The documentation says you get a redirect when you set this config to true:
… but I am not getting any redirect?
Am I missing something here?
The text was updated successfully, but these errors were encountered: