Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirectToPrior does work but not as documented #111

Open
andytough opened this issue Jul 24, 2017 · 1 comment
Open

redirectToPrior does work but not as documented #111

andytough opened this issue Jul 24, 2017 · 1 comment

Comments

@andytough
Copy link

In the documentation it says that &redirectToPrior, if true, will redirect the user to the referring page (HTTP_REFERER) on successful login. It says that the default is `0`.

This suggests that in order to get &redirectToPrior to redirect a user who has successfully logged in to the referring page you would use &redirectToPrior=`1` However, this does not appear to work.

I have found that you need to use &redirectToPrior=`0` a successfully logged in user will be redirected to the referring page.

@andytough andytough changed the title redirectToPrior does work but not as docuemtned redirectToPrior does work but not as documented Jul 24, 2017
@DESIGNfromWITHIN
Copy link

DESIGNfromWITHIN commented Nov 9, 2018

This is not the case anymore.
[[!Login? &redirectToPrior="1" &loginTpl="lgnLoginPageTpl" &logoutTpl="lgnLogoutPageTpl" ]]

&redirectToPrior set to 0 gives
<input class="returnUrl" type="hidden" name="returnUrl" value="/login.html">

Set to 1 gives
<input class="returnUrl" type="hidden" name="returnUrl" value="/custom-made/oem-services/">

But still the redirect does not work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants