• Resolved rholdstock

    (@rholdstock)


    I’m working on a site which uses the profile builder plugin to restrict content to members only. We would like to send our members emails with links to specific pages within the restricted area but they are prompted to login and are then redirected to a specific url. Is it possible for them to be directed to the page they have requested after login instead? Would I need to use a dynamic url such as {{http_referer}} ?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @rholdstock,

    If you’ve restricted the page while using the Profile Builder Content Restriction Meta-Box, then you can try the following:

    1. Go to your site’s Dashboard -> Pages -> click on the page you want to restrict -> and scroll down until you see the Profile Builder Content Restriction Meta-Box.
    2. For “Type of Restriction” select “Message”, for “Display For” select who can see the content of the page, and now check the “Enable Custom Messages” box and then inside “Messages for logged-out users” Text area type the Profile Builder Login shortcode ( [wppb-login] ).

    You can also check the screenshot from here for an example. By doing the above when a user clicks on that restricted page he will need to log in first, but after he logged in he will continue to stay on that page.

    Note: You can try the above example on a Test page first to see if it works how you desire

    Best regards,

    Thread Starter rholdstock

    (@rholdstock)

    Thank you for your reply, I can’t see your screenshot for some reason but it is good to know that what I’m trying to achieve is possible. Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic url redirect to page requested after login’ is closed to new replies.