Skip to content

Commit

Permalink
NavigationItemRenderer: Ignore target for '#' urls
Browse files Browse the repository at this point in the history
fixes #11197
  • Loading branch information
Johannes Meyer committed Feb 22, 2016
1 parent 17d0f7b commit c744392
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -218,7 +218,7 @@ public function render(NavigationItem $item = null)
protected function renderTargetAttribute()
{
$target = $this->getItem()->getTarget();
if ($target === null) {
if ($target === null || $this->getItem()->getUrl()->getAbsoluteUrl() == '#') {
return '';
}

Expand Down

0 comments on commit c744392

Please sign in to comment.