Skip to content

Commit b2aaaef

Browse files
committed
Hotfix: Fix media redirects
1 parent d763093 commit b2aaaef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redirects.map

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
~^/(|en/?)?$ /2.5/en/;
33

44
# Redirect /en without version to current stable version
5-
~^/en/(?<path>.+)$ /2.5/en/${path};
5+
~^/en/(?<path>(?!media/?).+)$ /2.5/en/${path};
66

77
# Redirect /stable to current stable version
88
~^/stable/?$ /2.5/en/;
@@ -29,7 +29,7 @@
2929
#"~^/1\.25/(?<language>[a-zA-Z]{2})(/|/index)?$" /1.25/${language}/getting-started;
3030

3131
# Redirect old media paths
32-
#"~^/(?<version>[0-9-\._]+|devel)/en/media/(?<filename>.+)$" /${version}/en/media/${filename};
32+
"~^/(?<version>[0-9-\._]+|devel)/en/media/(?<filename>.+)$" /en/media/${filename};
3333

3434
# Redirect help-google to clouds-gce
3535
"~^/(?<version>[0-9-\._]+|devel)/en/help-google/?$" /${version}/en/clouds-gce;

0 commit comments

Comments
 (0)