I have a login form at the following page:
site.com/en/downloads
“en” is the user_language ( and is stored as such in a global var )
when I login, the form redirects me to:
site.com/downloads
While it should redirect me to the URL with my user_language
I’ve tried numerous things, but the value of the return value always gets ignored.
return =”{site_url}/{user_language}/downloads”
return =”{site_url}”
return =“http://site.com”
return =“http://google.com”
return =“about/index”
they all redirect to site.com/downloads.
the code that is being outputted ( for the last example ) looks like this:
<form method="post" action="http://site.com/" >
<div class='hiddenFields'>
<input type="hidden" name="XID" value="9fae3b1b5fcf882776da6638706595af73a7b15d" />
<input type="hidden" name="ACT" value="7" />
<input type="hidden" name="RET" value="about/index" />
<input type="hidden" name="site_id" value="1" />
</div>
I have an .htaccess that looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]