My environment is named `local`. Before upgrading to 4.0.11 (second tab in the screenshot), the favicon shows a letter `l`. After upgrading (first tab in the screenshot), the favicon always shows `(`. I guess it’s taking the `(` from the version prefix, instead of the actual name of the environment.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | pngout.png | 10.15 KB | andrew.wang |
| #3 | Screen Shot 2023-01-13 at 2.48.11 PM.png | 4.1 KB | pcate |
| pngout.png | 35.89 KB | andrew.wang |
Issue fork environment_indicator-3325119
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
darktek commentedSame issue here :(
I created a patch in this thread so you can take a look and apply it to your current version: https://www.drupal.org/project/environment_indicator/issues/3324621#comm...
Comment #3
pcate commentedSeeing this as well.
Comment #6
prudloff commentedThe MR uses only the environment name to generate the favicon.
Comment #7
devkinetic commentedThis patch actually tracks with the original functionality. There is another issue #3377164: JS adds "(()" on mobile which swaps the title and the version around, but the truth is, all we need is the first character of the title, so no version is needed at all.
Comment #8
joegraduateThis issue should probably be closed as a duplicate of #3324621: Make version indicator source and version indicator source fallback configurable..
Comment #9
isholgueras commentedI like the fix, but there is another place where this should be fixed in
environment_indicator.module:94. @prudloff, Can you please add the same code there?Thanks!
Comment #10
prudloff commentedI don't think it needs to be fixed there,
$titlealready takes its value from$active_environment->get('name').The patch in #3324621: Make version indicator source and version indicator source fallback configurable. seems to remove the deployment identifier from everywhere the environment title is displayed.
The current MR only removes it from
drupalSettings(because we don't want to use it to generate the favicon but we do want to display it in the toolbar).Comment #11
andrew.wang commentedLooks good now after applying the patch:
Comment #12
trackleft2In case the maintainers were wondering, this merge request is compatible with the merge request in #3324621: Make version indicator source and version indicator source fallback configurable. and is not a duplicate.
This issue #3325119: Favicon always shows `(` after upgrading to 4.0.11 is strictly about the Favicon.
+1 for merging
Comment #14
isholgueras commentedI'm going to add this to the 4.0.20 release. Thanks for the work
Comment #15
isholgueras commented