NavigationItemRenderer: Ignore target for '#' urls

fixes #11197
This commit is contained in:
Johannes Meyer 2016-02-22 11:13:23 +01:00
parent 17d0f7be5e
commit c7443924bd
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class NavigationItemRenderer
protected function renderTargetAttribute()
{
$target = $this->getItem()->getTarget();
if ($target === null) {
if ($target === null || $this->getItem()->getUrl()->getAbsoluteUrl() == '#') {
return '';
}