From 3571d05d81bbc4143d5e2cead71670f138206832 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Tue, 1 Aug 2023 17:09:23 -0400 Subject: [PATCH] backport of commit acd039672104f983e9070ecd50cb85f99fd4a9c4 (#22161) --- website/redirects.js | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/website/redirects.js b/website/redirects.js index d58382bcf..58c924a61 100644 --- a/website/redirects.js +++ b/website/redirects.js @@ -59,5 +59,50 @@ module.exports = [ source: '/vault/docs/agent/caching/:slug', destination: '/vault/docs/agent-and-proxy/agent/caching/:slug', permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:4|5|6|7|8|9|10|11|12|13)\.x)/agent-and-proxy/agent/', + destination: '/vault/docs/:version/agent/', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:4|5|6|7|8|9|10|11|12|13)\.x)/agent-and-proxy/agent/template', + destination: '/vault/docs/:version/agent/template', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:4|5|6|7|8|9|10|11|12|13)\.x)/agent-and-proxy/agent/caching', + destination: '/vault/docs/:version/agent/caching', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:4|5|6|7|8|9|10|11|12|13)\.x)/agent-and-proxy/autoauth/:slug*', + destination: '/vault/docs/:version/agent/autoauth/:slug', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:8|9|10|11|12|13)\.x)/agent-and-proxy/agent/caching/:slug*', + destination: '/vault/docs/:version/agent/caching/:slug', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:7|8|9|10|11|12|13)\.x)/agent-and-proxy/agent/winsvc', + destination: '/vault/docs/:version/agent/winsvc', + permanent: true, + }, + { + source: '/vault/docs/:version(v1\.(?:8|9)\.x)/agent-and-proxy/agent/generate-config', + destination: '/vault/docs/:version/agent/template-config', + permanent: true, + }, + { + source: '/vault/docs/v1.13.x/agent-and-proxy/agent/versions', + destination: '/vault/docs/v1.13.x/agent/versions', + permanent: true, + }, + { + source: '/vault/docs/v1.13.x/agent-and-proxy/agent/apiproxy', + destination: '/vault/docs/v1.13.x/agent/apiproxy', + permanent: true, } ]