Jump to content

Help with memberstack login redirect code

Recommended Posts

Site URL: https://ar-go.live/events

I am trying to implement this code:  https://www.youtube.com/watch?v=VsLZGk4W47w    
code starts at 3:08. I am coming up with a problem implementing in in sqaurespace.  Could you help?
I added this to my main header code right under my memebrstack API code:
// sets the url of the page you're on
localStorage.setItem('locat', location.href);
I created a "success" page that the login and sign up for a membership redrecit to. On that page in the header (which is all I can access on squarespace), I added the code:
window.location = localStorage.getItem('locat');
Then when I login, I get an infinite loop going on.
Can you see what I may have done wrong?
Thank you!
Link to comment
  • Replies 4
  • Views 793
  • Created
  • Last Reply


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.