Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 May 2019 at 19:19 UTC
Updated:
3 May 2021 at 12:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cilefen commentedI surrounded the code samples in the report with the proper tags so as to make them visible.
Comment #3
webiator gmbh commentedI tried simply adding
to the
<current>route and it seems to work. Check out my patch.Security seems fine to me although I am not an expert.
Comment #4
borisson_Patch doesn't apply on 8.7 or 8.8. I am not sure about the security implications of this. I don't think it will be a big problem, but tagging this with needs security review.
Comment #5
dawehnerI think the right question to be asked here is: Why is this link not visible in the first place? Figuring this out would be better than just plain giving access.
If I understand correctly it's because no access means access denied, but why is it visible for the authenticated user then?
Comment #6
KittenDestroyer commentedAdded the same fix for 8.8.x. I see no better solution for this problem, since all similar in logic links have the same access requirements. Also I manually tested admin links on anonymous.
Comment #9
feyp commentedI'm closing this as a duplicate of #3008889: Menu link targeting the current page is not accessible, since it looks like the same issue (with an identical patch even) and although this issue is older, the other issue already has tests and is ready for review.