# Redirect after login one like logout redirect

**URL:** <https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804>\
**Category:** Feature\
**Created:** [2015年一月9日 10:33 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804 "2015-01-09T10:33:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![naggar](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@naggar](https://meta.discourse.org/u/naggar)\
**Post date:** [2015年一月9日 10:33 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/1 "2015-01-09T10:33:40Z")

</div>

How about feature like redirect after login the one like logout redirect.  
 ![](https://global.discourse-cdn.com/meta/original/3X/0/b/0bb3756aca397fe8aba5585426310b91de30e57c.png)

Is there any way when i use URL `https://meta.discourse.org/login?redirect_url=www.something.com` for user login and as soon as user login he will redirect to custom provide domain in redirect\_url query string.

---

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2015年一月9日 13:23 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/2 "2015-01-09T13:23:55Z")

</div>

Maybe I’m missing something. If you redirect someone to another site after they sign in, how will they ever use Discourse?

---

<div class="post-metadata">

**Author:** ![naggar](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@naggar](https://meta.discourse.org/u/naggar)\
**Post date:** [2015年一月10日 05:11 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/3 "2015-01-10T05:11:51Z")

</div>

@downey i mean which works only when i redirect user from other domain to discourse using URL: `https://meta.discourse.org/login?redirect_url=www.something.com/page` and as soon as user authenticate in discourse it will redirect them to `www.something.com/page` as in Query string value.

After that user can go back to Discourse any time through the link for it.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2015年一月10日 05:19 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/4 "2015-01-10T05:19:23Z")

</div>

That seems a bit counter-intuitive  
If I log in to the SitePoint forums and end up at SitePoint the site, despite there being an available link to the forum, that isn’t what I’d expect. It would feel more like a hijack of my log-in or that there was a bug.

Maybe you are more concerned about the SSO process?

---

<div class="post-metadata">

**Author:** ![naggar](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@naggar](https://meta.discourse.org/u/naggar)\
**Post date:** [2015年一月10日 05:21 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/5 "2015-01-10T05:21:16Z")

</div>

Something Like SSO but i want to use discourse login mechanism.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年一月10日 07:02 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/6 "2015-01-10T07:02:00Z")

</div>

Discourse can serve “reverse SSO” to your site, if that’s what you want?

---

<div class="post-metadata">

**Author:** ![naggar](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@naggar](https://meta.discourse.org/u/naggar)\
**Post date:** [2015年一月10日 07:05 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/7 "2015-01-10T07:05:15Z")

</div>

Yes, where i can use discourse Login for SSO.

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十二月4日 11:33 UTC](https://meta.discourse.org/t/redirect-after-login-one-like-logout-redirect/23804/8 "2025-12-04T11:33:27Z")

</div>


