Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

"Login" link shows up for logged-in users as well

$
0
0

Problem/Motivation

In D7, a manual created menu link pointing to "user/login" only showed up if I'm not already logged in.
In D8, the link shows up no matter whether I'm already logged in or not.
Guess that has something to do with the new routing system.

Steps to replicate this issue:
- Goto: /admin/structure/menu/manage/main
- Add a menu link "Login" to the path "user/login"
- Go to the home page, , whilst logged in, you should have 2 links "Home" and "Login"

On Drupal 7 you wouldn't see this link.

Proposed resolution

Before

After

Remaining tasks

User interface changes

Yes, login menu item will not display if one is already logged in

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>