# Regression in login behavior

**URL:** <https://meta.discourse.org/t/regression-in-login-behavior/81612>\
**Category:** Bug\
**Created:** [February 26, 2018, 11:18pm UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612 "2018-02-26T23:18:47Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

[vikaskedia](/t/-/81612/1) reports a regression in login behavior after upgrading to the latest version. The Discourse instance is hosted in a subfolder (`/discourse/`) and requires login. Previously, accessing the root URL redirected users to `/discourse/login/`, but after the upgrade, it incorrectly redirects to `/login/`, causing issues. [sam](/t/-/81612/2) asks if there are known issues regarding redirects in subfolders. [hellekin](/t/-/81612/3) reminds [vikaskedia](/t/-/81612/1) to use `example.com` for examples per [RFC2606](https://tools.ietf.org/search/rfc2606#section-3) and suggests avoiding backticks for links. [vikaskedia](/t/-/81612/4) follows up asking for updates. [Falco](/t/-/81612/5) confirms that a fix is available in [PR #5657](https://github.com/discourse/discourse/pull/5657/files) and is awaiting review from [tgxworld](/t/-/81612/5).

<div class="post-metadata">

**Author:** ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)\
**Post date:** [February 26, 2018, 11:18pm UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/1 "2018-02-26T23:18:48Z")

</div>

I just upgraded to the latest today.

I run the system from `http://www.example.com/discourse/`

The system is set to only allow logged in users.

When users go to `http://www.example.com/discourse/` they are being redirected to `http://www.example.com/login/`

In v1.9 they were being redirected to `http://www.example.com/discourse/login/`

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [February 27, 2018, 7:09am UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/2 "2018-02-27T07:09:58Z")

</div>

@Falco are there open issues with requires logic in a subfolder ?

---

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [February 27, 2018, 10:25am UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/3 "2018-02-27T10:25:36Z")

</div>

> [@vikaskedia](#):
>
> I run the system from [http://www.domain.com/discourse/](http://www.domain.com/discourse/)

Can you please use `example.com` when giving examples? (See [RFC2606](https://tools.ietf.org/search/rfc2606#section-3)). Also, you can prevent links with backquotes: `http://some.example.net/without/actual/link`. Thanks!

---

<div class="post-metadata">

**Author:** ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)\
**Post date:** [March 7, 2018, 8:50am UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/4 "2018-03-07T08:50:55Z")

</div>

@Falco any news on this .. can i help ?

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 7, 2018, 5:46pm UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/5 "2018-03-07T17:46:20Z")

</div>

Fix is in this PR:

[https://github.com/discourse/discourse/pull/5657/files](https://github.com/discourse/discourse/pull/5657/files)

Will wait for @tgxworld review, since he mentions a recent fix in this code.

---

<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:** [June 26, 2018, 7:39am UTC](https://meta.discourse.org/t/regression-in-login-behavior/81612/6 "2018-06-26T07:39:04Z")

</div>

Closed on June 26, 2018, 7:39am UTC


