Skip to content

Commit

Permalink
Migrate to new RTD redirect format
Browse files Browse the repository at this point in the history
Migrate to the new redirect format introduced by ReadTheDocs in
readthedocs/readthedocs.org#10881

The wildcard redirect is broken at the moment due to faulty handling of
infinite redirect detection on the ReadTheDocs side.

Signed-off-by: Bence Szépkúti <[email protected]>
  • Loading branch information
bensze01 committed Jan 16, 2024
1 parent 133f318 commit 69ab685
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions redirects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
# redirects - changes to this file are only applied when they are merged
# into the main branch.

- type: sphinx_htmldir
- type: html_to_clean_url
from_url: /
to_url: /

- type: page
from_url: /tech-updates/security-advisories/
from_url: /tech-updates/security-advisories
to_url: /security-advisories/

- type: page
from_url: /security-advisories/security-advisories/
from_url: /security-advisories/security-advisories
to_url: /security-advisories/

- type: exact
from_url: /en/latest/security-advisories/advisories/$rest
to_url: /en/latest/security-advisories/
- type: page
from_url: /security-advisories/advisories/*
to_url: /security-advisories/:splat

- type: page
from_url: /roadmap/
from_url: /roadmap
to_url: /project/roadmap/

0 comments on commit 69ab685

Please sign in to comment.