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

Menu link targeting the current page is not accessible

$
0
0

Problem/Motivation

Given this menu link:

menu_test.current:
  title: 'Link to current page'
  route_name: '<current>'
  menu_name: account

An anonymous will not see it in the "account" menu. This is because the access to the route is denied. But if a user reached a page is supposed to be able to reach it again. So, the access to the <current> route should always be granted.

The bug is proved by the attached patch.

Proposed resolution

Always allow the access to <current> route.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 300980

Trending Articles



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