Problem/Motivation
For some projects, administrators may prefer cross-environment links to direct to a consistent specific path on the site instead of directly to the currently viewed page. To support the existing functionality, this should be a configurable option with a default value to match current functionality.
Steps to reproduce
Proposed resolution
- Add a new configuration setting in the module settings
- Manipulate generation of the environment links based on the new setting
Remaining tasks
User interface changes
Add a new "Path" field on the settings form for each environment.
API changes
Data model changes
New "path" configuration value in the "environment_indicator.switcher.*" configuration objects.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | environment_indicator-configure_switcher_path-3274102-6.patch | 8.17 KB | aimeee |
| #5 | environment_indicator-configure_switcher_path-3274102-5.patch | 4.57 KB | azinck |
Issue fork environment_indicator-3274102
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 #3
sluceroComment #4
azinck commentedComment #5
azinck commentedI've taken a different approach here to allow the configuration of an optional static path for each environment link.
Comment #6
aimeee commentedUpdated the patch in #5 for 9.4.7.