diff --git a/core/modules/user/src/Authentication/Provider/Cookie.php b/core/modules/user/src/Authentication/Provider/Cookie.php index 9cae484..7c07c57 100644 --- a/core/modules/user/src/Authentication/Provider/Cookie.php +++ b/core/modules/user/src/Authentication/Provider/Cookie.php @@ -130,8 +130,8 @@ public function addCheckToUrl(ResponseEvent $event) { $options = UrlHelper::parse($url); $options['query']['check_logged_in'] = '1'; $url = $options['path'] . '?' . UrlHelper::buildQuery($options['query']); - if (!empty($options['#fragment'])) { - $url .= '#' . $options['#fragment']; + if (!empty($options['fragment'])) { + $url .= '#' . $options['fragment']; } // In the case of trusted redirect, we have to update the list of // trusted URLs because here we've just modified its target URL