diff --git a/source/js/third-party/fancybox.js b/source/js/third-party/fancybox.js index 178db4b..85ab4ae 100644 --- a/source/js/third-party/fancybox.js +++ b/source/js/third-party/fancybox.js @@ -31,5 +31,8 @@ document.addEventListener('page:loaded', () => { image.wrap(imageWrapLink); }); - Fancybox.bind('[data-fancybox]'); + // Disable hash handling to avoid conflicts with PJAX navigation. + Fancybox.bind('[data-fancybox]', { + Hash: false + }); });