mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
redirect: use document.location.replace instead of location.href to
avoid storing old URL in browser history
This commit is contained in:
parent
0c17ca3a52
commit
dcf6c34284
@ -22,7 +22,7 @@
|
||||
|
||||
{% if page.meta.redirect %}
|
||||
<script>
|
||||
location.href = '{{ page.meta.redirect }}')
|
||||
document.location.replace({{ page.meta.redirect }})
|
||||
</script>
|
||||
<meta http-equiv="refresh" content="0; url={{ page.meta.redirect }}"/>
|
||||
<link rel="canonical" href="{{ page.meta.redirect }} " />
|
||||
|
Loading…
Reference in New Issue
Block a user