# Redirect to original URL after oauth login

**URL:** <https://kanboard.discourse.group/t/redirect-to-original-url-after-oauth-login/397>\
**Category:** Open Discussions\
**Created:** [May 24, 2019, 12:05pm UTC](https://kanboard.discourse.group/t/redirect-to-original-url-after-oauth-login/397 "2019-05-24T12:05:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [May 24, 2019, 2:47pm UTC](https://kanboard.discourse.group/t/redirect-to-original-url-after-oauth-login/397/6 "2019-05-24T14:47:39Z")

</div>

> 4.0K drwxr-sr-x 10 www-data www-data 4.0K May 23 17:06 Customizer

I was suspecting Customizer, you just confirmed it.

Try version 1.11.1 vs 1.11.2, i would imagine the issue will disappear, if not, then it’s not Customizer.

Sorry, I never tested it with an oauth…so I am hoping it’s not the issue, but if it is, then I may have to rethink that last update.

It would be this code:

> <https://github.com/creecros/Customizer/blob/87b4c02a73376bd8d8f3d1ff99e461a5cc79f522/Plugin.php#L121-L129>

I needed a way to force a redirect once and then force to login on the second, because it wasn’t picking up the user id when returning from a closed browser…i diddled with that thought process pretty long, but never even considered with oauth, well open to suggestions.

---

_[View the full topic](https://kanboard.discourse.group/t/redirect-to-original-url-after-oauth-login/397)._
