Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2025 at 17:43 UTC
Updated:
14 Oct 2025 at 07:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
hfernandes commentedComment #4
hfernandes commentedComment #5
joaopauloc.dev commentedI can confirm that the fix works.
I followed these steps.
Install Drupal 11
Create a custom module test link
Create the route and the menu link files as mentioned above.
Enabled the module.
Access the following url: /admin/test-link
Without the fix, I couldn't access the page.


After the fix was applied, I could access it.
Comment #6
catchOne comment on the MR.
Comment #7
hfernandes commentedComment #8
joaopauloc.dev commentedI confirm that after the code review changes the issue still fixed.
Same steps followed of comment #5
Access denied in without the fix.


Could access with the fix applied.
Comment #9
alexpottThis looks nearly ready - I think we can use API rather than exceptions to skip unrouted routes in the child link checking...
Comment #10
alexpottComment #11
hfernandes commentedComment #12
joaopauloc.dev commentedI confirmed that still working.


Without the fix getting access denied.
With fix applied.
Comment #15
catchThis looks good now. Committed/pushed to 11.x and cherry-picked to 11.2.x, thanks!