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:
parent
920f96e2e8
commit
a40ff611e4
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue