Initial url lost during reset password workflow
When trying to access a protected page, if not authenticated, we are redirected to the login page, with a "url" param containing the Base64 encoded initial url to be able to go on it when correctly authenticated. If I click on forgot password, I am redirected to the "mail.pl" page, containing also the "url" param, but if I then click on "Back to portal", I am returning to the login page without the "url" param, so then unable to go on the initial page when authenticated. Same issue if I go through the end of the reset password workflow, the "go back to portal" button looses the initial url.
I tried to modify the "mail.tpl" page
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">?skin=<TMPL_VAR NAME="SKIN">" class="btn btn-primary" role="button">
<span class="glyphicon glyphicon-home"></span>
<lang en="Go back to portal" fr="Retourner au portail" />
</a>
</div>
with something like that:
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">?skin=<TMPL_VAR NAME="SKIN">&url=<TMPL_VAR NAME="AUTH_URL">" class="btn btn-primary" role="button">
<span class="glyphicon glyphicon-home"></span>
<lang en="Go back to portal" fr="Retourner au portail" />
</a>
</div>
but url is always empty.
How can I get this to work correctly? I am using 1.9.13 version
Thank you