diff --git a/src/Hooks/OnepageHooks.php b/src/Hooks/OnepageHooks.php index 0d568c2..8ab71b9 100644 --- a/src/Hooks/OnepageHooks.php +++ b/src/Hooks/OnepageHooks.php @@ -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'; @@ -44,4 +44,4 @@ public function replaceScrollTag($strTag) return $value; } -} \ No newline at end of file +}