Skip to content

Commit

Permalink
Fix checking for navigation. Closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj authored Jan 15, 2021
1 parent 0440813 commit b95b9cb
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 b95b9cb

Please sign in to comment.