Problem/Motivation
"Learn more" opens seemingly random links in the project browser for recipes.
Steps to reproduce
1. Installed latest Drupal CMS.
2. Upgraded project browser to latest dev (after I have seen this issue on beta3 as well). - Upgrading drupal/project_browser (2.1.0-beta3 => dev-2.1.x c4151b5)
3. Enabled Recipes in admin/config/development/project_browser
4. Opened admin/modules/browse/recipes
5. Opened some recipes in the list and clicked on "Learn more" (see recording).
Proposed resolution
| Comment | File | Size | Author |
|---|---|---|---|
| Screencast_20251010_115551.mp4 | 4.07 MB | mxr576 |
Issue fork project_browser-3551428
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aryan singh commentedWorking on it!!
Comment #4
aryan singh commentedComment #5
phenaproximaComment #6
aryan singh commentedDoing changes.
Comment #7
chrisfromredfinSince we found this quite-legit bug, we'll want to add a test for this condition in the Kernel test in RecipesSourceTest.php
Comment #8
phenaproximaComment #9
aryan singh commentedDid the change required.
As I am new to drupal.org contributions I am not moving further with the test needed for this condition.Will explore more related to this.Meanwhile, if anyone else has a test related to this condition, I would welcome their contribution.
Comment #10
chrisfromredfinAdam (phenaproxima) is working on writing a test. Thanks for the report and your contribution, Aryan!
Comment #13
chrisfromredfinFixed and backported. Adam is going to file a follow-up to add a regression test, but we wanted to get this into stable!
Comment #15
phenaproximaI figure I'll write the tests on another MR in this issue's fork.
Comment #17
chrisfromredfinThere's a test here in !875, needs review (but I wrote it, so would love someone else's eyes)
Comment #18
phenaproximaCouple of minor things.
Comment #21
chrisfromredfinFixed in 2.1.x by writing a test (and refactoring for some helpers), then backported clean to 2.0.x.