Skip to content

Commit

Permalink
docs/website: fix /docs redirect (#4483)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
  • Loading branch information
srenatus authored Mar 25, 2022
1 parent 7be2043 commit 5ed5c1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/website/layouts/index.redirects
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ed5c1b

Please sign in to comment.