Disable Fancybox hash handling with PJAX (#983)

This commit is contained in:
Mimi 2026-08-04 17:26:12 +08:00 committed by GitHub
parent 5c7574fd3f
commit 854e2006b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
});
});