From b95b9cb8c727af5dab3d03b4b454685473c5eadc Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Sat, 16 Jan 2021 00:00:15 +0100 Subject: [PATCH] Fix checking for navigation. Closes #15 --- src/Hooks/OnepageHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}