From f3a0dbc491a6f6add0ad5817edc7d057325adb32 Mon Sep 17 00:00:00 2001 From: Zachary Shilton <4624598+zchsh@users.noreply.github.com> Date: Tue, 1 Nov 2022 13:36:10 -0400 Subject: [PATCH] chore: add empty page redirects --- website/redirects.js | 62 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/website/redirects.js b/website/redirects.js index 7cc696b46..7d56c6e47 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 */