Skip to content

Commit 86a6021

Browse files
committed
MNT: make re-direct relative
This is helpful to people who want to host off-line versions of the docs.
1 parent 35bc91c commit 86a6021

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_websiteutils/make_redirects_links.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@ def findlast(fname, tocheck):
5454
else:
5555
return None
5656

57+
5758
html_redirect = """
5859
<!DOCTYPE HTML>
5960
<html lang="en">
6061
<head>
6162
<meta charset="utf-8">
62-
<meta http-equiv="refresh" content="0;url=https://matplotlib.org%s" />
63-
<link rel="canonical" href="https://matplotlib.org%s" />
63+
<meta http-equiv="refresh" content="0;%s" />
64+
<link rel="canonical" href="url=https://matplotlib.org%s" />
6465
</head>
6566
<body>
6667
<h1>
67-
The page been moved to <a href="https://matplotlib.org%s"</a>
68+
The page been moved to <a href="%s"</a>
6869
</h1>
6970
</body>
7071
</html>

0 commit comments

Comments
 (0)