We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3cf64 commit 36c6a8bCopy full SHA for 36c6a8b
sphinx_reredirects/__init__.py
@@ -17,7 +17,7 @@
17
OPTION_TEMPLATE_FILE_DEFAULT = None
18
19
REDIRECT_FILE_DEFAULT_TEMPLATE = (
20
- '<html><head><meta http-equiv="refresh" content="0; url=${to_uri}"></head></html>' # noqa: E501
+ '<html><head><noscript><meta http-equiv="refresh" content="0; url=${to_uri}" /></noscript><script>var target = "${to_uri}";if (window.location.hash) {window.location.replace(target + window.location.hash);} else {window.location.replace(target);}</script></head></html>' # noqa: E501
21
)
22
23
logger = logging.getLogger(__name__)
0 commit comments