mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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 %}
|
{% if page.meta.redirect %}
|
||||||
<script>
|
<script>
|
||||||
location.href = '{{ page.meta.redirect }}')
|
document.location.replace({{ page.meta.redirect }})
|
||||||
</script>
|
</script>
|
||||||
<meta http-equiv="refresh" content="0; url={{ page.meta.redirect }}"/>
|
<meta http-equiv="refresh" content="0; url={{ page.meta.redirect }}"/>
|
||||||
<link rel="canonical" href="{{ page.meta.redirect }} " />
|
<link rel="canonical" href="{{ page.meta.redirect }} " />
|
||||||
|
Loading…
Reference in New Issue
Block a user