svenfuchs/routing-filter

Routing Error instead of fallback to en

Opened this issue · 0 comments

if I do:

http://lvh.me:3000/br/lab

where br language is not added, I get error:

Routing Error
br/lab

Rails.root: /Users/Apple/Documents/projects/my_idea_project

Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:74:in `routing_error'
lib/rack/seoredirect.rb:20:in `call'

How to force en locale at missing locales in the route? ex: /en/lab when br is missing

I am using version 0.6.0 with rails 4.2, please advice!