Problem/Motivation
RecipeForm includes a hard-coded redirect back to /admin/modules/browse/recipes. This can lead to a 404 if the recipes source isn't enabled, but even if it is, it might not be the page you came from (if, say, you installed a recipe via a mini-browser on another page). It's from a year ago, when Project Browser looked quite different.
Proposed resolution
The form should redirect back to the page you were on, whose path should be passed to the activate route in a URL query parameter.
This will not need explicit coverage because the desired code path is already verified by the existing tests.
Issue fork project_browser-3539283
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
chrisfromredfinComment #4
phenaproximaComment #5
phenaproximaComment #6
phenaproximaAssigning to @chrisfromredfin for light manual testing and commit. How to test this:
recipessource on some other page that isn't a Project Browser page./admin/modules/browse/recipes.Comment #9
chrisfromredfinmanually tested and confirmed.
Comment #11
chrisfromredfinbackport complete.