# New Topic URL - Lost if not logged in

**URL:** <https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266>\
**Category:** Support\
**Created:** [03.Декабрь.2015 03:03:01 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266 "2015-12-03T03:03:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyhmsg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yyhmsg/32/115542_2.png) [@yyhmsg](https://meta.discourse.org/u/yyhmsg)\
**Post date:** [03.Декабрь.2015 03:03:01 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/1 "2015-12-03T03:03:01Z")

</div>

Continuing the discussion from [Compose a new pre-filled topic via URL](https://meta.discourse.org/t/compose-a-new-pre-filled-topic-via-url/28074/14):

> [@Creating a link to start a new topic with pre-filled information](https://meta.discourse.org/t/creating-a-link-to-start-a-new-topic-with-pre-filled-information/28074/14):
>
> Should be fixed via:
> 
> [FIX: new-topic URL should survive login redirection · discourse/discourse@d1632c1 · GitHub](https://github.com/discourse/discourse/commit/d1632c1dbd256411bbb348f638bb7f5f61f05eae)

@techAPJ I was just exploring the new topic url and just tried clicking on a new topic url when not logged in - it then asks you to login which is great, however, after you are logged in you just go to front page - not to the new content window. So I don’t think this is fixed yet. As something else changed that makes the session variable not hold?

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [03.Декабрь.2015 03:19:44 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/2 "2015-12-03T03:19:44Z")

</div>

I just tried visiting this URL when not logged in – [Discourse Meta](https://meta.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=support/wordpress)

The feature is working as expected for me, as soon as I provided my credentials, the pre-filled composer opened.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [03.Декабрь.2015 03:24:37 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/3 "2015-12-03T03:24:37Z")

</div>

Are you referring to SSO or regular login? Can you repro on [try.discourse.org](http://try.discourse.org)?

---

<div class="post-metadata">

**Author:** ![yyhmsg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yyhmsg/32/115542_2.png) [@yyhmsg](https://meta.discourse.org/u/yyhmsg)\
**Post date:** [03.Декабрь.2015 13:01:32 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/4 "2015-12-03T13:01:32Z")

</div>

I had only tried sso (github and facebook if it matters…) - which does not work - a regular login does. I think I understand some of the complexity of this with sso logins, but this type of functionality would be awesome for my site at least. Is it possible with sso?

Oh, and I reproduced this on my site and on meta, but try. is not responding right now so I couldn’t try it there…

---

<div class="post-metadata">

**Author:** ![yyhmsg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yyhmsg/32/115542_2.png) [@yyhmsg](https://meta.discourse.org/u/yyhmsg)\
**Post date:** [04.Декабрь.2015 23:56:41 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/5 "2015-12-04T23:56:41Z")

</div>

Just an update try. wasn’t down it just doesn’t work with https and you get a connection refused error… Either way, with that figured out I tried this on try. just now with

> **[Discourse Demo](https://try.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=discourse)**
>
> Demonstration sandbox for Discourse

and it doesn’t work there either with sso…

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [05.Декабрь.2015 01:20:16 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/6 "2015-12-05T01:20:16Z")

</div>

Try does not use SSO. Can you repro this @techapj?

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [05.Декабрь.2015 09:06:28 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/7 "2015-12-05T09:06:28Z")

</div>

> [@yyhmsg](#):
>
> (github and facebook if it matters…) - which does not work

I understand your issue now. I can confirm that this feature is not working when logging in via social login method (Google/Twitter/Facebook).

~~Working on a fix now.~~ Fixed via:

[https://github.com/discourse/discourse/commit/ad98f270c925e7cbdfdf7d7687605b49656503b6](https://github.com/discourse/discourse/commit/ad98f270c925e7cbdfdf7d7687605b49656503b6)

Thanks for reporting this @yyhmsg 💝

---

<div class="post-metadata">

**Author:** ![yyhmsg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yyhmsg/32/115542_2.png) [@yyhmsg](https://meta.discourse.org/u/yyhmsg)\
**Post date:** [05.Декабрь.2015 23:07:10 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/8 "2015-12-05T23:07:10Z")

</div>

Awesome! Thanks for the quick fix! I’ll give it a shot at the next update of my site.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [06.Декабрь.2015 03:42:57 UTC](https://meta.discourse.org/t/new-topic-url-lost-if-not-logged-in/36266/9 "2015-12-06T03:42:57Z")

</div>


