Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
56f96fe5
Commit
56f96fe5
authored
Jul 07, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put back the fallback for the case javascript is disabled and also handle the case with no anchor.
parent
0a0a9038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
docs/conf.py
docs/conf.py
+9
-3
No files found.
docs/conf.py
View file @
56f96fe5
...
@@ -463,12 +463,18 @@ html_template = """
...
@@ -463,12 +463,18 @@ html_template = """
<html>
<html>
<head>
<head>
<script>
<script>
// Redirect to the new-style URL
var new_location = '{0}'
// Some browsers include the hash character in the anchor, strip it out
// Some browsers include the hash character in the anchor, strip it out
const anchor = window.location.hash.replace(/^#(.*)/, '$1');
const anchor = window.location.hash.replace(/^#(.*)/, '$1');
if (anchor){{
// Redirect to the new-style URL
new_location += '#' + anchor;
window.location = '{}#' + anchor;
}}
window.location = new_location
</script>
</script>
<meta http-equiv="refresh" content="1; url={0}:" />
</head>
</head>
</html>
</html>
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment