# Panel deep link redirects

**URL:** <https://forum.getkirby.com/t/panel-deep-link-redirects/10001>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 16, 2018, 1:07pm UTC](https://forum.getkirby.com/t/panel-deep-link-redirects/10001 "2018-03-16T13:07:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgobermayr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/georgobermayr/32/6112_2.png) [@georgobermayr](https://forum.getkirby.com/u/georgobermayr)\
**Post date:** [March 16, 2018, 1:07pm UTC](https://forum.getkirby.com/t/panel-deep-link-redirects/10001/1 "2018-03-16T13:07:15Z")

</div>

Hi,

I’m setting up an email workflow with deep links to panel pages. So I have a link like [http://127.0.0.1:8082/panel/pages/faqs/edit](http://127.0.0.1:8082/panel/pages/faqs/edit). This works fine when the user is logged in. However, if the user is not logged in, this redirects to [http://127.0.0.1:8082/panel/login](http://127.0.0.1:8082/panel/login). After the login the user is not redirect to the requested page but to the panel homepage.  
Is there any way to construct a link that redirects to a certain panel page after successful login?

Kind regards,  
Georg

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 18, 2018, 12:46pm UTC](https://forum.getkirby.com/t/panel-deep-link-redirects/10001/2 "2018-03-18T12:46:52Z")

</div>

What you could do is use a link like this:

```auto
login/panel/pages/faq/edit

```

Then use a route that checks if the user is logged in or not. If logged in - redirect to the panel page. If not logged in, store the panel page in the session and redirect the user to a custom login form. Upon successful login, get the redirect link from the session.

---

<div class="post-metadata">

**Author:** ![georgobermayr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/georgobermayr/32/6112_2.png) [@georgobermayr](https://forum.getkirby.com/u/georgobermayr)\
**Post date:** [March 19, 2018, 11:56am UTC](https://forum.getkirby.com/t/panel-deep-link-redirects/10001/3 "2018-03-19T11:56:41Z")

</div>

Thank you! Will try that.  
In some way I was hoping for an easier solution but maybe there will be one in the future 🙂

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:28pm UTC](https://forum.getkirby.com/t/panel-deep-link-redirects/10001/4 "2025-02-06T17:28:38Z")

</div>

Archived on February 6, 2025, 5:28pm UTC


