Skip to content

Commit f52f9ee

Browse files
committed
RTD redirect: fix 404 redirects
Now 404 uses static url prefix, rtd doesn't have this prefix, so links like https://openzfs.readthedocs.io/openzfs-docs/Getting%20Started/index.html (which existed in old rtd site) can't load js with redirects. So, just push redirect js inside 404 html page.
1 parent 047a4f7 commit f52f9ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/404.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@
44
===================
55

66
Please use left menu or search to find interested page.
7+
8+
.. raw:: html
9+
10+
<script>
11+
12+
.. raw:: html
13+
:file: ./_static/js/redirect.js
14+
15+
.. raw:: html
16+
17+
</script>

0 commit comments

Comments
 (0)