How to set up different redirects for gated content based on user authentication status? Answered

Post author
Peter McGrath

is there a way to redirect differently for gated content?

for example:

  • if someone is signed in but not in a paid plan when they get to gated content, i want to point them to the pricing page
  • but if someone is not signed in when they get to gated content, i want to point them to the sign up page

Comments

2 comments

  • Comment author
    Julian Galluzzo

    I would redirect to the signup page, then have a script on the signup page that redirects logged in users to the pricing page 🙂

    https://docs.memberstack.com/hc/en-us/articles/13156905423899--Code-Redirect-Logged-in-Members

    0
  • Comment author
    Peter McGrath

    nice i did something similar -- thank you!

    is there something off the shelf that shows how to set up this DOM package in the webflow script area? i was hacking together hidden input fields to pull in memberstack data in my scripts, but it seems like this could do it much more elegantly ?

    this worked for me if anyone ends up needing it

    0

Please sign in to leave a comment.