Jump to content

(SOLVED) Display page after user login


mbre

Recommended Posts

I also had to change line 10 in my-account.php from:

    Tools::redirect('authentication.php?back=my-account.php');



to:

    Tools::redirect('authentication.php?back=index.php');



You really helped me with your answer. Tnx again

Link to comment
Share on other sites

  • 1 year later...

I made changes to the AuthController.php file in PS 1.4

Lines 42, 207, 275

But it does not redirect me to the page index.php instead keeps going back to my-account.php

Is there a different file that I need to edit?

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

@bmsooth, @mccartym2:

 

I just ran into this problem too. Near the lines you already changed, you'll see lines that say:

 

Tools::redirect($back);

 

Change those to:

 

Tools::redirect('index.php');

 

That worked for me in 1.4.4.1

 

Hope that helps!

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Hi guys,

 

Would you know how to actually redirect to the previous page? So if I come from a Category page, I would like to go back to this category page after logging in. I have searched the forum but can't find any solutions (although there are some topics).

 

At the moment when I click the Login button from the blockuserinfo part of the site it takes me to:

 

http://www.****.com/en/authentication?back=my-account.php

 

I would like http://www.****.com/en/authentication?back="page-where-i-came-from"

 

:)

 

Hope this is possible!

 

Thanks for the help!!! And big up for the Prestashop team!!!

Link to comment
Share on other sites

Hi guys,

 

Would you know how to actually redirect to the previous page? So if I come from a Category page, I would like to go back to this category page after logging in. I have searched the forum but can't find any solutions (although there are some topics).

 

At the moment when I click the Login button from the blockuserinfo part of the site it takes me to:

 

http://www.****.com/...=my-account.php

 

I would like http://www.****.com/en/authentication?back="page-where-i-came-from"

 

:)

 

Hope this is possible!

 

Thanks for the help!!! And big up for the Prestashop team!!!

 

Hi guys,

 

I've been searching for this solution long time... Did someone solved it? Could someone help me?

 

Thanks in advance!

Link to comment
Share on other sites

  • 7 months later...

HI

 

I tried the same solution. While it changed the page from my-account to order history in my case, but now even if someone registers the page redirects to order-history.

 

I wanted that the page should redirect to order-history only if someone logs in. If some one registers then it should still go to My-account.

 

Any thoughts?

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...