chore: redirects (#12560)

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
Kevin Wang 2022-04-15 13:13:40 -04:00 committed by GitHub
parent 4d3a0aae6d
commit c74c06746b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -1381,4 +1381,16 @@ module.exports = [
destination: '/api-docs/:path*',
permanent: true,
},
// Redirects for exact versioned-docs to respective generic versions
{
source: '/:base(docs|api-docs)/v1.:minor([0-2]{1,}).(\\d+)',
destination: '/:base/v1.:minor.x',
permanent: true,
},
{
source: '/:base(docs|api-docs)/v1.:minor([0-2]{1,}).(\\d+)/:path*',
destination: '/:base/v1.:minor.x/:path',
permanent: true,
},
]