Jump to content

Redirect After Login


Recommended Posts

I'm allowing product comments for registered users only, so I've got a login link in the product comments tab on the products page. For usability reasons, I would like the user to come back to this exact page after logging in. What I found out is that this can be reached by adding a parameter 'back' to the login-url, but: how do I fill this parameter?

 

<a href="{$base_dir}authentication.php?back={CURRENT_PAGE}">

 

Question is: what do I have to replace CURRENT_PAGE with????

 

Thanks for your help!!!!

Sassenach

Link to comment
Share on other sites

  • 1 month later...

Thanks for your answer, phrasespot!

 

Unfortunately, when I replace it by the line you proposed, I'm getting this message:

 

Fatal error: Smarty error: [in /myshop/themes/blackwhite/modules/productcomments//productcomments.tpl line 116]: syntax error: unrecognized tag: smarty.server.REQUEST_URI|escape:'htmlall':'utf-8' (Smarty_Compiler.class.php, line 446) in /myshop/tools/smarty_v2/Smarty.class.php on line 1095

 

Any ideas???

 

Thanx a lot for your help

Sassenach

Link to comment
Share on other sites

  • 1 year later...

Thank you phrasespot for your help (because i used your solution), but i found a mistake :

 

{smarty.server.REQUEST_URI|escape:'htmlall':'utf-8'}

 

need to be :

 

{$smarty.server.REQUEST_URI|escape:'htmlall':'utf-8'}

 

to works with me.

 

I hope it will help other people :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...