Closed (fixed)
Project:
Project Browser
Version:
2.0.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2025 at 15:13 UTC
Updated:
10 Jul 2025 at 17:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
bhumikavarshney commentedComment #5
kanchan bhogade commentedHi
I have tested issue on Drupal 11.x
Testing steps:
After applied MR, the Help link broken on Modules page.
Attaching screenshot
Moving to Needs work
Comment #6
chrisfromredfinThe 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:
So it says something like:
Something like that.
Comment #8
libbna commentedThe 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.
Comment #9
libbna commentedComment #10
kanchan bhogade commentedHi
I have tested issue with MR on Drupal 11.x
The MR is applied successfully...
Help link working on Modules page.
Comment #11
phenaproximaComment #12
libbna commentedHey @phenaproxima I'm not sure I fully understand the reason for removing this line. We added the route because there wasn’t an existing route that redirects to the Project Browser help page. I referenced similar implementations in other modules when adding it. Could you please clarify why this line needs to be removed?
$output .= '<dd>' . t('Users who have the <em>Administer modules</em> can browse modules from the <em>Browse projects</em> page.') . '</dd>';Thanks.Comment #13
phenaproximaIt's not that we want to remove the line, we want to remove the link. We should remove the link because the link cannot be generated unless you have the ID of an enabled source plugin. You can compute that dynamically, but it's sort of pointless to do in the context of the Help page.
Comment #14
libbna commentedComment #15
phenaproximaLooks like the controller class is still there, but I'm not sure it's needed anymore...?
Comment #16
libbna commentedComment #17
libbna commentedComment #18
roshanibhangale commentedHi
I have tested issue on Drupal 11.x
Testing steps:
After applied MR, the Help link is redirecting to the help page correctly.
Attaching screenshot
Moving to RTBC+1
Comment #19
roshanibhangale commentedHi
Attaching screenshot, as in previuos comment screenshot was not uploaded.
Moving to RTBC+1
Comment #20
roshanibhangale commentedComment #24
chrisfromredfinfixed and ported to both branches. the test fail is pre-existing in 2.0.x and not related to these changes.