Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
denniserdmann committed Feb 26, 2021
2 parents 5e3ec1d + b95b9cb commit 8c90811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hooks/OnepageHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OnepageHooks extends Controller

public function onGetArticle($row): void
{
if ($anchor = $row->navigation_jumpTo) {
if ($row->addNavigation && ($anchor = $row->navigation_jumpTo)) {
$cssId = StringUtil::deserialize($row->cssID, true);
$cssId[0] = $anchor;
$cssId[1] .= ' onepage_article';
Expand All @@ -44,4 +44,4 @@ public function replaceScrollTag($strTag)

return $value;
}
}
}

0 comments on commit 8c90811

Please sign in to comment.