fix redirect
All checks were successful
/ build (push) Successful in 46s

This commit is contained in:
Nycki 2025-08-21 18:34:23 -07:00
parent f0fe87d667
commit 5c5cbfe9a3

View file

@ -4,12 +4,13 @@ layout: base.njk
# permalink: ''
# href: ''
---
page moved to <a href="{{ href }}">here</a>.
page moved to <a id="redirect" href="{{ href }}">here</a>.
<script>
const queries = (window.location.search || '').slice(1).split('&');
if (queries.includes('redirect=no')) {
// do nothing
} else {
window.location.replace("{{ href }}");
var el = document.querySelector('#redirect');
window.location.replace(el.href);
}
</script>