Skip to content

Commit

Permalink
Should work also with HTTPS base URL
Browse files Browse the repository at this point in the history
If default.extensions.Drupal\MinkExtension.base_url is set to a URL using
HTTPS, $GLOBALS['base_url'] still returns http as scheme. On the following step,
an HTTPS request fails to get the cookie as it has been set previously with HTTP.
Use the behat.yml base URL to compute the reset link.
  • Loading branch information
claudiu-cristea authored Dec 6, 2023
1 parent f6f9b6c commit 19f97ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AuthenticationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function getOneTimeLoginUrl(UserInterface $account): string
// base URL manually.
// @todo Remove this workaround once this is fixed in core.
// @see https://www.drupal.org/project/drupal/issues/2548095
'base_url' => $GLOBALS['base_url'],
'base_url' => $this->getMinkParameter('base_url'),
]
)->toString();
}
Expand Down

0 comments on commit 19f97ab

Please sign in to comment.