fixed home button URI

This commit is contained in:
Bachir Soussi Chiadmi 2023-03-07 14:55:46 +01:00
parent 2f126850d7
commit f6bcc78e28
1 changed files with 1 additions and 1 deletions

View File

@ -106,6 +106,6 @@ function ouatminimal_preprocess_toolbar(&$variables) {
unset($variables['tabs']['home']['link']['#attributes']['data-toolbar-escape-admin']);
unset($variables['tabs']['home']['link']['#markup']);
unset($variables['tabs']['home']['link']['#children']);
$uri = $_SERVER['HTTP_REFERER'];
$uri = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
$variables['tabs']['home']['link']['#url'] = Url::fromUri($uri);
}