I am using Domain Access.
My main site is www.mydomain.com.
I have multiple subdomains.
Issue:
1. I was logged in as an admin.
2. I was viewing the front page (I could still see the admin toolbar).
3. When I tried to go to my test environment, I got this URL:
https://subdomain.test.mydomain.comhttps//subdomain.mydomain.com/content/standing-rock-community-resources
I'm not sure if it's the fact that I was viewing the front page, so there was no additional path to append to the test base URL, or the fact that I'm using Domains.
I'll try to diagnose it further when I have a bit more time.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | issue-3092900-11.patch | 683 bytes | ankitjhakal |
| #8 | environment_indicator-issue_when_viewing_front_page-3092900.8.patch | 646 bytes | jaypan |
| #6 | after-patch.png | 455.71 KB | ambuj_gupta |
| #6 | before-patch.png | 527.58 KB | ambuj_gupta |
Comments
Comment #2
richa_porwal commentedComment #3
richa_porwal commentedFixed the url issue .
Comment #4
richa_porwal commentedComment #5
ambuj_gupta commentedComment #6
ambuj_gupta commentedTest Steps:
1. Install Drupal 8 with environment_indicator module.
2. Go to "admin/config/development/environment-indicator".
3. Apply patch #4
4. And add other environments with valid URLs.
5. Open php.settings in any of the editors.
6. And add below lines. And Save:
$config['environment_indicator.indicator']['bg_color'] = '#0D0D0D';
$config['environment_indicator.indicator']['fg_color'] = '#15f512';
$config['environment_indicator.indicator']['name'] = 'Locals';
7. Clear and cache and go to sites.
8. And check the added environment URLs
Results:
Tested and Reviewed by applying patch #4. And it's working as expected.
The user is able to navigate to the added environments.
Comment #7
jaypanRe-rolling for 4.x branch.
Comment #8
jaypanI discovered this was cutting the the current path on pages that needed it. As such, I've set a conditional whereby the current path is only set if there is a current path.
Comment #9
devkinetic commentedThis patch needs a reroll now that #2610208: Move procedural functions to a manager has landed.
Comment #10
ankitjhakal commentedComment #11
ankitjhakal commentedHi @devkinetic, Rerolled the patch, Attached patch working fine on my local machine.
Comment #12
ankitjhakal commentedComment #13
yevko commentedThe patch does not apply anymore. Plus, as I mentioned in https://www.drupal.org/project/environment_indicator/issues/3065135#comm... the problem reported here is fixed by the solution in that issue.
Comment #14
trackleft2Comment #15
trackleft2Comment #16
trackleft2Fixed in #3065135: Add support for multilingual domain sites where I've added credit.