<p>I can confirm this is a bug in the latest build of Craft (2.1.2570).  The fix for this will be in Tuesday's (09/02/2014) release.</p>

<p><strong>UPDATE</strong></p>

<p>This bug has been fixed in Craft 2.2. <a href="http://buildwithcraft.com/updates#build2579" rel="nofollow">http://buildwithcraft.com/updates#build2579</a></p>

CC BY-SA 3.0
2014-08-28T17:26:48.880Z
2014-09-02T18:58:50.153Z
2014-09-02T18:58:50.153Z
Brad Bell
<p>I have a top level page that needs the URL of "/login/". It has nothing to do with an actual Craft login.</p>

<p>If I have a logged-in session, that url redirects me to the dashboard (via <code>UsersController-&gt;actionLogin</code>).</p>

<p>If I'm logged out, the page renders fine.</p>

<p>I thought setting <code>craft.config.loginPath</code> to something other than <code>"login"</code> would fix it, but it didn't seem to have an effect.</p>

<control-panel><redirect>
Prevent redirecting to the control panel from a URI of "/login" when logged in
# Prevent redirecting to the control panel from a URI of "/login" when logged in

(Asked by: username_0 on 2014-08-28)

I have a top level page that needs the URL of "/login/". It has nothing to do with an actual Craft login.

If I have a logged-in session, that url redirects me to the dashboard (via `UsersController->actionLogin`).

If I'm logged out, the page renders fine.

I thought setting `craft.config.loginPath` to something other than `"login"` would fix it, but it didn't seem to have an effect.

**Tags:** control-panel, redirect


---

## 1 answers

### Answer by username_1 on 2014-08-28. Score: 2 | Accepted answer

I can confirm this is a bug in the latest build of Craft (2.1.2570). The fix for this will be in Tuesday's (09/02/2014) release.

**UPDATE**

This bug has been fixed in Craft 2.2. <http://buildwithcraft.com/updates#build2579>


---

