chore: redirects (#12560)
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
parent
4d3a0aae6d
commit
c74c06746b
|
@ -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,
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue