# Desired URL lost if \`login required\` is enabled and social logins are used

**URL:** <https://meta.discourse.org/t/desired-url-lost-if-login-required-is-enabled-and-social-logins-are-used/71887>\
**Category:** Bug\
**Created:** [11 Ottobre 2017, 11:17pm UTC](https://meta.discourse.org/t/desired-url-lost-if-login-required-is-enabled-and-social-logins-are-used/71887 "2017-10-11T23:17:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [12 Ottobre 2017, 12:02am UTC](https://meta.discourse.org/t/desired-url-lost-if-login-required-is-enabled-and-social-logins-are-used/71887/3 "2017-10-12T00:02:35Z")

</div>

Aha! I stand corrected!

It **does** work if I log in directly with Discourse, but if I log in with Google, then I get dumped back at the home page rather than the desired topic.

Trying to access a #lounge topic on meta when logged out. . .

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/6/46d2857843377295e4fe77c4aeaa3944fba37ae0.png)

Hey! I don’t remember seeing that before! And if I log in with Google, I’m redirected as I expect. This is different from the `login required` case that I started on, but accessing a locked URL when logged out is as close as I can come on meta and try.

I’ll rebuild on my site and see if this is a fixed regression.

Edit: OK. I did a rebuild on my `login required` site and it’s still the case that if I am logged out and visit a topic, if I log in with Google, I’m redirected to the home page, but if I log in with a Discourse username and password, I’m dumped at the home page rather than the topic page.

This seems like a bug.

---

_[View the full topic](https://meta.discourse.org/t/desired-url-lost-if-login-required-is-enabled-and-social-logins-are-used/71887)._
