Language with the segment setting

edited February 2015 in Bug Reports
We're building a site using the language/localization with the segment setting. All is well with regular CMS pages but if it's a URI for a controller page all we ever get back is the index method of that controller when a language is specified. For example domain.com/account/login works fine and give me back the login page but domain.com/es/account/login gives me back the account's index method. Do we have to use remaps on our controllers or is this something that the router should handle?

Comments

  • edited 4:36PM
    If you are using a controller of "account" in your fuel/application/controllers/ folder, do you have a route setup like so:
    $route['es/account/(:any)'] = 'account/$1';
  • edited 4:36PM
    I added that in and it worked. thank you.
Sign In or Register to comment.