- Issue created by @anthonyroundtree
- First commit to issue fork.
- @bhumikavarshney opened merge request.
- 🇮🇳India Kanchan Bhogade
Hi
I have tested issue on Drupal 11.xTesting steps:
- Install Project Browser as normal.
- Go to /admin/modules of your site.
- Search for Project Browser
- Click on Help link, , issue reprodused
- Applied MR and check for the same
After applied MR, the Help link broken on Modules page.
Attaching screenshot
Moving to Needs work
- 🇺🇸United States chrisfromredfin Portland, Maine
The issue here is line 24 of project_browser.module which is using Url::fromRoute to link to a route which now requires a parameter.
I think the right thing here is to instead iterate over all enabled sources, and generate a link to each one:
$output .= '<dd>' . t('Users who have the <em>Administer modules</em> can browse modules from the <a href=":project_browser_admin">Browse projects page</a>.', [':project_browser_admin' => Url::fromRoute('project_browser.browse', [])->toString()]) . '</dd>';
So it says something like:
Users who have the Administer modules ^permission can browse projects from the Extend section:
- Contrib modules
- Recipes
Something like that.
- First commit to issue fork.
- 🇮🇳India libbna New Delhi, India
The error occurred because the source parameter was missing when generating the route URL for project_browser.browse in the project_browser_help() function. I fixed this by explicitly passing 'source' => 'official' to Url::fromRoute(). After this change, the error no longer appears.
- Status changed to Needs review
about 5 hours ago 8:37am 2 June 2025 - 🇮🇳India Kanchan Bhogade
Hi
I have tested issue with MR on Drupal 11.x
The MR is applied successfully...Help link working on Modules page.