Add redirect for Docker post-processor pages (#10872)

Remote plugin docs such as Docker now fall under a top level path named
after the provider (e.g https://packer.io/docs/docker/...). This change
adds a redirect for the old URLs to the new location.
This commit is contained in:
Wilken Rivera 2021-04-06 10:37:05 -04:00 committed by Wilken Rivera
parent 920f96e2e8
commit a40ff611e4
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ module.exports = [
destination: '/docs/builders/vmware/vsphere-:path*',
permanent: true,
},
{
source: '/docs/post-processors/docker-:path',
destination: '/docs/post-processors/docker/docker-:path*',
permanent: true,
},
// disallow '.html' or '/index.html' in favor of cleaner, simpler paths
{ source: '/:path*/index', destination: '/:path*', permanent: true },
{ source: '/:path*.html', destination: '/:path*', permanent: true },