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: ''
|
||||
# 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>
|
||||
|
|
Loading…
Add table
Reference in a new issue