Hi there, I'm struggling with this for some hours already. I have a multilingual site by subfolders, so URL/es/ for spanish, URL for english(default), etc... The problem are the redirections or the normal hrefs/forms, doesn't catch the url/language/ as a base like the ajax calls.(So if i click in login href in mysite/es goes to mysite/login and not mysite/es/login).After tried everything, nothing works but the cleanest solution would be to change the base URL of the site for the /language/ version but I just cannot! I can change it for an specific controller but not for all system dinamically. I've tried accesing by new DI, a factorydefault one but no luck. How can I change the default Base URL on demand? I've even tried with PHP plain code but still I cannot. If that isnt as well the proper way please enlight me, coz I'm really blocked. The routers are properly configured, I've tried choosing the language as a namespace as well but then the routers doesnt work...
EDIT: Ok, i figure out something but I don't think is the best way, I set the language param as a variable in the view and I add $language to the URLs and the redirections. I wait for a better solution anyway.