# SSO 登录后保留 /new-topic 意图

**URL:** <https://meta.discourse.org/t/preserve-new-topic-intent-after-sso-login/118464>\
**Category:** Support\
**Created:** [2019年五月23日 00:30 UTC](https://meta.discourse.org/t/preserve-new-topic-intent-after-sso-login/118464 "2019-05-23T00:30:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2019年五月23日 00:53 UTC](https://meta.discourse.org/t/preserve-new-topic-intent-after-sso-login/118464/2 "2019-05-23T00:53:52Z")

</div>

> [@JulesW](#):
>
> When I send a user to a `/new-topic?title=blah` - and they’re not yet logged into discourse - they are redirected to perform SSO.
> 
> Upon SSO completion, Discourse does not return them to this `new-topic` where they were login-bounced from, instead it sends them to the Latest Posts page.

This can be made to work. You need to send the user to `/session/sso?return_path=/new-topic?title=your topic title`.

A full link would look something like this:

```html
<a href="https://forum.example.com/session/sso?return_path=/new-topic?title=this is another test topic">New Topic</a>

```

Have a look at the [Create a DiscourseConnect login link](https://meta.discourse.org/t/create-an-sso-login-link/109290) topic for more details.

---

_[View the full topic](https://meta.discourse.org/t/preserve-new-topic-intent-after-sso-login/118464)._
