Redirect User after login to the link, which was clicked

Hi all,

I just wanted to ask, if it possible to redirect a user after the user was logged in on the login page.

The a rough process for better understanding:

  1. The user receives an email with a specific link and clicks on it
  2. The user is not logged in and is forwarded automatically to the login page
  3. User logs in and should be redirected to url page the user clicked

I have now tried with the function “Go to previous page”, but this sadly does not work.

Is there a way to do such a redirect?

Best and thanks for the help,
Kevin

1 Like

Idea 1: Instead of redirecting to the login page, have a popup on each page to login.
Idea 2: When you redirect, send the current page url in a url parameter to the login page. Once login, redirect user to the url page parameter.

1 Like

Hey @Kurb,

How about something like this?

In this example we have two pages, the destination and a login page. If you go to the destination page, but are logged out, you are redirected to login. If you login you are redirected to the destination page if it was provided.

Destination page:

Login page:

Hope that helps!

–Ken



Looking to accelerate your app development?

Development of Advanced Apps at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

14 Likes

Works perfect thank you very much.

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.