- 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.