@@ -60,11 +60,14 @@ https://istio.netlify.com/* https://istio.io/:splat 301!
60
60
/favicon.ico /latest/favicons/favicon.ico 200
61
61
/logos/* /latest/logos/:splat
62
62
63
- # navigating to a page without /latest on front, add /latest
64
- {{ range $p := .Site.Pages }}
65
- {{ strings.TrimPrefix "/latest" $p.Permalink }} {{ $p.Permalink}}
66
- {{ strings.TrimPrefix "/latest" (printf "%s.html" (substr $p.Permalink 0 -1)) }} {{ $p.Permalink}}
67
- {{- end }}
63
+ # Redirect root paths without /latest
64
+ /about/* /latest/about/:splat
65
+ /blog/* /latest/blog/:splat
66
+ /docs/* /latest/docs/:splat
67
+ /get-involved/* /latest/get-involved/:splat
68
+ /news/* /latest/news/:splat
69
+ /search/* /latest/search/:splat
70
+ /test/* /latest/test/:splat
68
71
69
72
# redirect current version to /latest
70
73
/v{{ .Site.Data.args.version }}/* /latest/:splat
@@ -75,15 +78,11 @@ https://istio.netlify.com/* https://istio.io/:splat 301!
75
78
# migration from old design to new
76
79
/about / 301!
77
80
/latest/about /latest 301!
78
- # /faq/ /about/faq
79
- /faq/* /about/faq/
80
- # /latest/faq/ /about/faq
81
- /latest/faq/* /about/faq/
82
- /about/faq/* /about/faq/
83
- /latest/about/faq/* /about/faq/
81
+ /faq/* /latest/about/faq/
82
+ /latest/faq/* /latest/about/faq/
83
+ /about/faq/* /latest/about/faq/
84
84
85
85
# media-resources page
86
-
87
86
/about/media-resources https://github.com/cncf/artwork/tree/master/projects/istio
88
87
/latest/about/media-resources https://github.com/cncf/artwork/tree/master/projects/istio
89
88
/about/zh/media-resources https://github.com/cncf/artwork/tree/master/projects/istio
0 commit comments