Redirect after login

This seems to be a very simple thing to do, but somehow I couldn’t figure it out.

How do I redirect members to a specific page after login?

I’d like the log in redirect to be different from the sign up redirect.

Thanks!

Just found the solution. I’ll add here for reference.

On your membership setup page, if you scroll all the way to the bottom you will find a section to specify the redirect after sign up, login and log out.

I just can’t get it to redirect to the homepage.

I’ve tried leaving it blank or adding a slash and keep getting the same error: “Login Redirect Required”.

Hi @gusvd,

I added this to my list of things to review. We definitely need a way for you to redirect users to your homepage :grinning:

For now, here’s a workaround.

  1. Create a page (it can be blank)
  2. On the page add this code to the header
<script>
   window.location.replace("/")
</script>
  1. set your “page after login” to the page that has that code

I ran into the same issue. If I remember correctly, I resolved it by entering a “#” instead of leaving it blank.

1 Like

Thanks @belltyler. I’m using a similar workaround.
I will give @alankemsley’s suggestion a try.

1 Like

@gusvd If “#” doesn’t work, try putting in “/index.html” since that’s the default page name for all home pages of any website.

2 Likes

Adding /index.htmlworked great. Thanks!

3 Likes