diff --git a/website/redirects.js b/website/redirects.js index 7cc696b4629..7d56c6e4719 100644 --- a/website/redirects.js +++ b/website/redirects.js @@ -36,18 +36,56 @@ module.exports = [ * should be a 404. Asana task for this "don't return content for empty" work: * https://app.asana.com/0/1100423001970639/1202110665886351/f */ - /* - packer/docs/templates/hcl_templates/functions/collection - packer/docs/templates/hcl_templates/functions/contextual - packer/docs/templates/hcl_templates/functions/conversion - packer/docs/templates/hcl_templates/functions/crypto - packer/docs/templates/hcl_templates/functions/encoding - packer/docs/templates/hcl_templates/functions/file - packer/docs/templates/hcl_templates/functions/ipnet - packer/docs/templates/hcl_templates/functions/numeric - packer/docs/templates/hcl_templates/functions/string - packer/docs/templates/hcl templates/functions/uuid - */ + { + source: '/packer/docs/templates/hcl_templates/functions/collection', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/contextual', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/conversion', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/crypto', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/encoding', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/file', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/ipnet', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/numeric', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/string', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, + { + source: '/packer/docs/templates/hcl_templates/functions/uuid', + destination: '/packer/docs/templates/hcl_templates/functions', + permanent: true, + }, /** * END EMPTY PAGE REDIRECTS */