MemberStack.io

Separate Home Page for Logged In Users

Hi there! Is it possible to have a separate home page for logged in users? Essentially, if you go to my URL www.orderinclub.com, it is our landing page. However, I want it to become the user dashboard if a member of our site is logged in. So rather than having to see the landing page, when they go to orderinclub.com, they just see their member portal. Is this possible? (I’ll be using Webflow when I set this up)

Hey Abgeter :wave:

In our experience having the homepage redirect to the dashboard without the user specifically saying this is what they want isn’t a very good experience. If you are sure you want to do this you would put this code on your homepage. :smiley:

<script>
    Memberstack.onReady.then(function(member) {   
      if (member.loggedIn) {
        // replace the following capitalized text with the dashboard url
        window.location.replace("THE URL YOU WANT TO GO TO HERE");
      }
    });
</script>