From 07f51b347a7991601ab44bf5022aba6bebea302f Mon Sep 17 00:00:00 2001 From: davidhauck Date: Fri, 25 Sep 2020 07:04:38 -0700 Subject: [PATCH] Include redirects for static resources (#8209) --- layouts/index.redir | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/index.redir b/layouts/index.redir index 9c7714ae5f..889a702acb 100644 --- a/layouts/index.redir +++ b/layouts/index.redir @@ -38,6 +38,12 @@ https://istio.netlify.com/* https://istio.io/:splat 301! /downloadIstio https://raw.githubusercontent.com/istio/istio/master/release/downloadIstioCandidate.sh /downloadIstioctl https://raw.githubusercontent.com/istio/istio/master/release/downloadIstioCtl.sh +# Redirect static folder +/img/* /latest/img/:splat +/misc/* /latest/misc/:splat +/talks/* /latest/talks/:splat +/favicons/* /latest/favicons/:splat + # navigating to a page without /latest on front, add /latest {{ range $p := .Site.Pages }} {{ strings.TrimPrefix "/latest" $p.Permalink }} {{ $p.Permalink}} @@ -52,4 +58,4 @@ https://istio.netlify.com/* https://istio.io/:splat 301! http://archive.istio.io/ http://istio.io/archive 301! http://archive.istio.io/* http://istio.io/:splat 301! https://archive.istio.io/ https://istio.io/archive 301! -https://archive.istio.io/* https://istio.io/:splat 301! \ No newline at end of file +https://archive.istio.io/* https://istio.io/:splat 301!