Skip to content

Commit

Permalink
Hotfix: Fix media redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
nottrobin committed Mar 7, 2019
1 parent d763093 commit b2aaaef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redirects.map
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~^/(|en/?)?$ /2.5/en/;

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

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

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

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

0 comments on commit b2aaaef

Please sign in to comment.