Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Help with memberstack login redirect code



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 post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

I figured it out .... I just had to put : <script>localStorage.setItem('locat', location.href);</script> on each page that the user can log in from.  In SS on the event page, inc

Posted Images

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...