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.

Command icon 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

slucero created an issue. See original summary.

slucero’s picture

Status: Active » Needs review
azinck’s picture

Issue summary: View changes
azinck’s picture

I've taken a different approach here to allow the configuration of an optional static path for each environment link.

aimeee’s picture

Updated the patch in #5 for 9.4.7.