Merge branch 'jerryc127:dev' into dev

This commit is contained in:
Yuchen Mu 2025-03-02 10:12:00 +08:00 committed by GitHub
commit 6019cc8b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,10 @@ script.
document.addEventListener('pjax:error', e => {
if (e.request.status === 404) {
window.location.href = e.request.responseURL
const usePjax = !{theme.pjax && theme.pjax.enable}
!{theme.error_404 && theme.error_404.enable}
? (usePjax ? pjax.loadUrl('!{url_for("/404.html")}') : window.location.href = '!{url_for("/404.html")}')
: window.location.href = e.request.responseURL
}
})
})()
})()