From 5ed5c1b941bd5f8e1e77c01a0d4624b89d94fc37 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Fri, 25 Mar 2022 11:28:22 +0100 Subject: [PATCH] docs/website: fix /docs redirect (#4483) Signed-off-by: Stephan Renatus --- docs/website/layouts/index.redirects | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/website/layouts/index.redirects b/docs/website/layouts/index.redirects index ca0cbe4fdb..4da0842e4e 100644 --- a/docs/website/layouts/index.redirects +++ b/docs/website/layouts/index.redirects @@ -4,9 +4,10 @@ # Redirect to latest doc version by default {{- if eq (len site.Data.releases) 1 -}} -{{- $latest = "edge" -}} -{{- end -}} /docs /docs/{{ $latest }} 301! +{{- else -}} +/docs /docs/latest 301! +{{- end -}} # v0.14.0 re-org redirects # TODO: Remove at some point in the future when its more ok to break old links en-mass