# Перенаправление пользователя на новую тему после входа через OAuth

**URL:** https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291
**Category:** Feature
**Tags:** oauth2
**Created:** [02.Январь.2024 17:38:53 UTC](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291 "2024-01-02T17:38:53Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [02.Январь.2024 17:54:12 UTC](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291/2 "2024-01-02T17:54:12Z")

</div>

Извините, я уже нашёл это здесь [здесь](https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004/5?u=zameel7)

Вам нужно использовать origin вместо return\_path.  
Например: `mydiscourseurl.com/auth/oauth2_basic?origin=/new-topic?...`

---

_[View the full topic](https://meta.discourse.org/t/redirect-user-to-new-topic-after-oauth-login/290291)._
