Sign in Button Redirect - Wrong link

Hi,

I’m using Reiro theme.
I run a membership site with some content gated to free registered members, the theme comes by default with a signin page that has the following setting :
data-members-autoredirect=“false”
I changed it to “true” as per the documentation.

Now when navigating through my locked article → signin → magic link, I get the following magic link sent to me:
https://my.domain/members/?token=4s034K22k6LW4mRuNnXhPeeRT3PLwZHS&action=signin&r=https%3A%2F%2Fmy.domain%2Fsignin%2F

Meaning it does not capture my article and brings me back to the signin page (it does log my user correctly - but I would expect it to go back to the article).

How can I resolve it for the magic link to go to my article?

Thanks!

This is a theme specific problem, so you may want to ping the creator.

It’s a common problem - Portal thinks the last page you were on was the sign in page (and it isn’t wrong), so takes you back there.

For single sign on, I use a cookie approach. You can find it in the sample code here: How to set up social sign-in on your Ghost theme (look at default.hbs)

Alternately, don’t redirect, or use portal for sign up instead of the custom page.