#15041 - Fix logo link for internal links

As documented here: 761a1f623b
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-05-27 21:42:20 +02:00
parent 5d40d309cd
commit 9d586fc539
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -130,7 +130,11 @@ class NavigationHeader
PHP_URL_HOST
);
if (empty($host)) {
$logoLink .= Url::getCommon();
$hasStartChar = strpos($logoLink, '?');
$logoLink .= Url::getCommon(
array(),
is_bool($hasStartChar) ? '?' : URL::getArgSeparator()
);
} else {
$linkAttriks = 'target="_blank" rel="noopener noreferrer"';
}