# Redirect user to new-topic after oauth login

**URL:** https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291
**Category:** Feature
**Tags:** oauth2
**Created:** [January 2, 2024, 5:38pm UTC](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291 "2024-01-02T17:38:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zameel7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zameel7/32/351575_2.png) [@zameel7](https://meta.discourse.org/u/zameel7)
#### Post date: [January 2, 2024, 5:38pm UTC](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291/1 "2024-01-02T17:38:53Z")

</div>

I have an oauth setup done in my discourse instance. I know we can redirect users to certain pages after login if we had sso → `mydiscourseurl.com/session/sso?return_path=/new-topic?title=topic`.

I would like to know if this is possible after oauth login like → `mydiscourseurl.com/auth/oauth2_basic?return_path=/new-topic?title=topic`?

---

<div class="post-metadata">

### Author: ![zameel7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zameel7/32/351575_2.png) [@zameel7](https://meta.discourse.org/u/zameel7)
#### Post date: [January 2, 2024, 5:54pm UTC](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291/2 "2024-01-02T17:54:12Z")

</div>

Sorry, found it here already [here](https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004/5)

What you have to do is, instead of return\_path, user origin.  
Eg: `mydiscourseurl.com/auth/oauth2_basic?origin=/new-topic?...`
