I have a route that is suppose to match something like this
localhost:3000/site/admin
and redirect to
localhost:3000/en/site/admin
here is the route line that should match this
routes.rb
match '*path', to: redirect("/#{I18n.default_locale}/%{path}")
but instead of matching it and redirecting to localhost:3000/en/site/admin, It's redirecting infite to this
http://localhost:3000/en/en/en/en/en/en/en/en/en/en/en/en/en/site/admin
(adds /en until browser complains about infite loop)
Any idea why this infite loops is happening? Thanks
EDIT
Link to my my entire routes.rb file
https://gist.github.com/2323762