From 6814b16aba65b169dac8d0c69fe96688c01b174a Mon Sep 17 00:00:00 2001 From: Julian Chen Date: Wed, 5 Aug 2020 05:46:24 -0500 Subject: [PATCH] Fix pjax scroll restoration (#74) --- layout/_scripts/pjax.njk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/_scripts/pjax.njk b/layout/_scripts/pjax.njk index 6c74ed689..f12bd6048 100644 --- a/layout/_scripts/pjax.njk +++ b/layout/_scripts/pjax.njk @@ -10,7 +10,8 @@ var pjax = new Pjax({ ], analytics: false, cacheBust: false, - scrollTo : !CONFIG.bookmark.enable + scrollRestoration: false, + scrollTo: !CONFIG.bookmark.enable }); document.addEventListener('pjax:success', () => {