Specify which page the app logs into when using a magic link

Hello Community.

Is there a way to specify the app page that the magic link should take the user to when they go to it? Maybe at the time the magic link is created?

If not, are there any work-around to direct a user to a specific page upon using a magic link?

Thanks

Hi there, you can use the &next-page=page-name parameter to redirect them to a different page after the magic link is activated.

This should solve it for you!

Hi JJ. Thanks for the recommendation.

To be honest, I am not quite following it, so maybe you could clarify.

I need to be able to create magic links that send users to different app pages when they login. So, the intuition tells me I have to be able to define that destination at the time the magic link is created. How else could I tie a particular magic link with a particular app page?

The create magic link api looks like this:

curl --location --request POST 'https://studio-api.softr.io/v1/api/users/magic-link/generate/user@softr.io' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'

I am not sure where &next-page=page-name would go. Can I tack it to the end of my Softr-Domain parameter? I tried it and it doesn’t seem to work.

Thanks

I achieve this in Airtable. If you are using Airtable too, @matthieu_chateau gives the formula here.

Hope that helps, or gets you closer if not directly.

1 Like

Thanks, @MarkSchofield for the clarification.

This makes sense now. Confirming that it is working.

Thanks, JJ, again.

1 Like