[eluser]chefnelone[/eluser]
I tried. but didn't work for me.
I load 'myViewPage' from a controller called 'catalog'
...185.33.1.1/catalog/myViewPage
with a link:
Code:
<a href="site/set_language/english">Run set_language and refresh this page</a>
Then I have the 'site' controller with:
Code:
function set_language(){
redirect(uri_string());
}
When I hit the link the browser takes me to this url:
...185.33.1.1/index/set_language/english
instead of
...185.33.1.1/catalog/set_language/english
Maybe the cause is that I have the function 'set_language' in the 'site' controller but I load the 'myViewPage' from 'catalog' controller. Should I have all in one controller to get redirect() working properly?