# Redirect User after login to the link, which was clicked

**URL:** <https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118>\
**Category:** Need help\
**Created:** [April 10, 2019, 5:47pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118 "2019-04-10T17:47:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurb](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@Kurb](https://forum.bubble.io/u/Kurb)\
**Post date:** [April 10, 2019, 5:47pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118/1 "2019-04-10T17:47:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [April 10, 2019, 6:00pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118/2 "2019-04-10T18:00:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mebeingken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mebeingken/32/20139_2.png) [@mebeingken](https://forum.bubble.io/u/mebeingken)\
**Post date:** [April 10, 2019, 6:01pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118/3 "2019-04-10T18:01:41Z")

</div>

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:

 ![25%20AM](https://us1.discourse-cdn.com/bubble/original/3X/7/f/7fc3487902c7a2bbd004a243bc961b77f3e2b789.png)

Login page:

 ![17%20AM](https://us1.discourse-cdn.com/bubble/original/3X/f/7/f7539b1a7654dda02968f171a1bb9a27432e36cb.png)

 ![28%20AM](https://us1.discourse-cdn.com/bubble/original/3X/f/0/f07a772b5bd8e5b475e2c1357a588ba64af4e56f.png)

Hope that helps!

–Ken

  

* * *

> **Looking to accelerate your app development?**
>
> Development of Advanced Apps at [https://uniqueideas.com](https://uniqueideas.com?utm_source=bubble&utm_medium=forum&utm_content=signature-unique-ideas&utm_campaign=builders) or schedule a [free intro session](https://uniqueideas.com/coaching?utm_source=bubble&utm_medium=forum&utm_content=signature-free-intro&utm_campaign=builders) 🎁
> 
> Ken Truesdale  
> [LinkedIn](https://www.linkedin.com/in/mebeingken/)

---

<div class="post-metadata">

**Author:** ![Kurb](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@Kurb](https://forum.bubble.io/u/Kurb)\
**Post date:** [April 10, 2019, 6:15pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118/4 "2019-04-10T18:15:30Z")

</div>

Works perfect thank you very much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [June 19, 2019, 5:48pm UTC](https://forum.bubble.io/t/redirect-user-after-login-to-the-link-which-was-clicked/54118/5 "2019-06-19T17:48:03Z")

</div>

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