This commit is contained in:
parent
f0fe87d667
commit
5c5cbfe9a3
1 changed files with 3 additions and 2 deletions
|
@ -4,12 +4,13 @@ layout: base.njk
|
||||||
# permalink: ''
|
# permalink: ''
|
||||||
# href: ''
|
# href: ''
|
||||||
---
|
---
|
||||||
page moved to <a href="{{ href }}">here</a>.
|
page moved to <a id="redirect" href="{{ href }}">here</a>.
|
||||||
<script>
|
<script>
|
||||||
const queries = (window.location.search || '').slice(1).split('&');
|
const queries = (window.location.search || '').slice(1).split('&');
|
||||||
if (queries.includes('redirect=no')) {
|
if (queries.includes('redirect=no')) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} else {
|
} else {
|
||||||
window.location.replace("{{ href }}");
|
var el = document.querySelector('#redirect');
|
||||||
|
window.location.replace(el.href);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue