• Hi!
    How can i redirect the user when login my website to back of the last page?
    The example the user in the movie page, but the movie only for the logged in users can view.. The user is clicked the login, the user is logged in and how can i redirect back of the movie? Now if the user is logged in redirect the home page.. And its not the best solution, not comfortable..
    Thanks.
    Best regards:
    Dominik Varga (www.sorozatmax.hu)

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vdominik19

    The redirection should work when there’s redirec_to parameter in the Login page Url e.g. https://www.yoursitedomain/login/?redirect_to=youriste.com/movie/123/

    Does it contain the sample URL above with the parameter?

    Regards,

    Thread Starter vdominik19

    (@vdominik19)

    Hi. Thanks for the reply!
    The page I want to redirect to is not a specific page..
    But, for example, if the user is on the About Us page and logs in to your account then redirect to the About Page. If the user on movies page and logs in redirect back of the movies page..
    The redirect is work fine but I couldn’t find an opportunity.
    I hope its understandable, what I want..
    Best regards:
    Dominik Varga (www.sorozatmax.hu)

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vdominik19

    Your login menu link should have the redirect_to parameter that has the current page URL:

    E.g. <a href="HTTP://yoursite.com/login/?redirect_to=yoursite.com/about/">Login</a>

    Regards,

    That’s not what he’s asking. He wants the visitor to remain on whatever page they were previously on when they clicked the login link.

    There is a setting in User Roles (Action to be taken after login), but it doesn’t work. I have mine set to “Refresh Active Page” but it always takes visitors to their profile after logging in instead of remaining on the current page.

    Thread Starter vdominik19

    (@vdominik19)

    @catalano Yeah, thats what i asking.. ??
    But my English is not so good.. :/ And it’s bad that the Admin closes the topic when I haven’t received a solution.

    • This reply was modified 4 years, 11 months ago by vdominik19.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘User login redirect back of the last page’ is closed to new replies.