From 712b520bbf7c2a0d701534642eea5db6b8cfb078 Mon Sep 17 00:00:00 2001 From: pclavier92 Date: Mon, 29 Apr 2024 07:03:13 +0000 Subject: [PATCH] Redirects config cleanup 2024-04-29 --- config/redirects.js | 296 +++++++++++++++++--------------------------- 1 file changed, 112 insertions(+), 184 deletions(-) diff --git a/config/redirects.js b/config/redirects.js index 238e9864a2..1400f8b793 100644 --- a/config/redirects.js +++ b/config/redirects.js @@ -55,12 +55,7 @@ const redirects = [ to: '/', }, { - from: [ - '/contentful-test-1', - '/contentful-test-2', - '/contentful-test-3', - '/contentful-test-4', - ], + from: ['/contentful-test-1', '/contentful-test-2', '/contentful-test-3', '/contentful-test-4'], to: '/', }, { @@ -315,11 +310,7 @@ const redirects = [ to: '/quickstart/native/wpf-winforms', }, { - from: '/xamarin-tutorial', - to: '/quickstart/native/xamarin', - }, - { - from: '/quickstart/native/xamarin', + from: ['/quickstart/native/xamarin', '/xamarin-tutorial'], to: '/quickstart/native/net-android-ios', }, { @@ -371,7 +362,7 @@ const redirects = [ to: '/quickstart/spa', }, { - from: ['/quickstart', '/quickstart/'], + from: ['/quickstart', '/quickstart/', '/quickstart/native/cordova'], to: '/quickstarts', }, { @@ -410,10 +401,6 @@ const redirects = [ ], to: '/quickstart/webapp/express', }, - { - from: ['/quickstart/native/cordova'], - to: '/quickstart', - }, /* CONNECTIONS */ @@ -972,7 +959,6 @@ const redirects = [ { from: ['/microsites/call-api/call-api-m2m-app'], to: '/get-started/authentication-and-authorization-flow/client-credentials-flow', - }, { from: ['/microsites/add-login/add-login-native-mobile-app'], @@ -1821,39 +1807,27 @@ const redirects = [ to: '/get-started/applications/test-database-connections', }, { - from: [ - '/get-started/tenant-settings/auth0-teams', - ], + from: ['/get-started/tenant-settings/auth0-teams'], to: '/get-started/auth0-teams', }, { - from: [ - '/get-started/tenant-settings/auth0-teams/tenant-management', - ], + from: ['/get-started/tenant-settings/auth0-teams/tenant-management'], to: '/get-started/auth0-teams/tenant-management', }, { - from: [ - '/get-started/tenant-settings/auth0-teams/team-member-management', - ], + from: ['/get-started/tenant-settings/auth0-teams/team-member-management'], to: '/get-started/auth0-teams/team-member-management', }, { - from: [ - '/get-started/tenant-settings/auth0-teams/tenant-member-management', - ], + from: ['/get-started/tenant-settings/auth0-teams/tenant-member-management'], to: '/get-started/auth0-teams/tenant-member-management', }, { - from: [ - '/get-started/tenant-settings/auth0-teams/configure-security-policies', - ], + from: ['/get-started/tenant-settings/auth0-teams/configure-security-policies'], to: '/get-started/auth0-teams/configure-security-policies', }, { - from: [ - '/get-started/tenant-settings/auth0-teams/troubleshoot-teams', - ], + from: ['/get-started/tenant-settings/auth0-teams/troubleshoot-teams'], to: '/get-started/auth0-teams/troubleshoot-teams', }, @@ -3235,34 +3209,31 @@ const redirects = [ from: ['/branding-customization', '/brand-and-customize'], to: '/customize', }, + { + from: ['/sign-up-prompt-customizations', '/customize/universal-login-pages/customize-signup-and-login-prompts'], + to: '/customize/login-pages/universal-login/customize-signup-and-login-prompts', + }, { from: [ - '/sign-up-prompt-customizations', - '/customize/universal-login-pages/customize-signup-and-login-prompts', + '/universal-login/new-experience/universal-login-page-templates', + '/universal-login/page-templates', + '/universal-login/universal-login-page-customization', + '/customize/universal-login-page-templates', + '/brand-and-customize/universal-login-page-templates', + '/customize/universal-login-pages', ], - to: '/customize/login-pages/universal-login/customize-signup-and-login-prompts', -}, -{ - from: [ - '/universal-login/new-experience/universal-login-page-templates', - '/universal-login/page-templates', - '/universal-login/universal-login-page-customization', - '/customize/universal-login-page-templates', - '/brand-and-customize/universal-login-page-templates', - '/customize/universal-login-pages', - ], - to: '/customize/login-pages', -}, -{ - from: [ - '/universal-login/classic-experience/customization-classic', - '/universal-login/customization-classic', - '/universal-login/advanced-customization', - '/brand-and-customize/customization-classic', - '/customize/universal-login-pages/customization-classic', - ], - to: '/customize/login-pages/classic-login/customization-classic', -}, + to: '/customize/login-pages', + }, + { + from: [ + '/universal-login/classic-experience/customization-classic', + '/universal-login/customization-classic', + '/universal-login/advanced-customization', + '/brand-and-customize/customization-classic', + '/customize/universal-login-pages/customization-classic', + ], + to: '/customize/login-pages/classic-login/customization-classic', + }, { from: [ '/universal-login/version-control-universal-login-pages', @@ -3525,7 +3496,7 @@ const redirects = [ '/brand-and-customize/customize-login-text-prompts/prompt-email-otp-challenge', '/customize/universal-login-pages/customize-login-text-prompts/prompt-email-otp-challenge', ], - to: '/customize/login-pages/universal-login/customize-text-elements', + to: '/customize/login-pages/universal-login/customize-text-elements', }, { from: [ @@ -3774,25 +3745,17 @@ const redirects = [ to: '/authenticate/login/oidc-conformant-authentication', }, { - from: [ - '/customize/universal-login-pages/customize-new-universal-login-with-the-no-code-editor', - ], + from: ['/customize/universal-login-pages/customize-new-universal-login-with-the-no-code-editor'], to: '/customize/login-pages/universal-login/customize-themes', -}, - + }, { - from: [ - '/customize/universal-login-pages/universal-login-page-templates', - ], + from: ['/customize/universal-login-pages/universal-login-page-templates'], to: '/customize/login-pages/universal-login/customize-templates', -}, - + }, { - from: [ - '/customize/universal-login-pages/universal-login-page-customization', - ], + from: ['/customize/universal-login-pages/universal-login-page-customization'], to: '/customize/login-pages/classic-login/customize-with-lock-sdk', -}, + }, /* Internationalization and Localization */ @@ -4190,46 +4153,86 @@ const redirects = [ /* Deploy CLI Tool */ { - from: ['/deploy-monitor/deploy-cli-tool/install-and-configure-the-deploy-cli-tool'], + from: [ + '/deploy-monitor/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', + '/extensions/deploy-cli/guides/install-deploy-cli', + '/extensions/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', + '/deploy/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', + ], to: '/deploy-monitor/deploy-cli-tool', }, { - from: ['/deploy-monitor/deploy-cli-tool/create-and-configure-the-deploy-cli-application'], + from: [ + '/deploy-monitor/deploy-cli-tool/create-and-configure-the-deploy-cli-application', + '/extensions/deploy-cli/guides/create-deploy-cli-application-manually', + '/extensions/deploy-cli-tool/create-and-configure-the-deploy-cli-application-manually', + '/extensions/deploy-cli-tool/create-and-configure-the-deploy-cli-application', + '/deploy/deploy-cli-tool/create-and-configure-the-deploy-cli-application', + ], to: '/deploy-monitor/deploy-cli-tool', }, { - from: ['/deploy-monitor/auth0-deploy-cli/configuring-the-deploy-cli', - '/deploy-monitor/deploy-cli-tool/configuring-the-deploy-cli', - ], + from: [ + '/deploy-monitor/auth0-deploy-cli/configuring-the-deploy-cli', + '/deploy-monitor/deploy-cli-tool/configuring-the-deploy-cli', + ], to: '/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli', }, { - from: ['/deploy-monitor/deploy-cli-tool/call-deploy-cli-tool-programmatically', - '/deploy-monitor/deploy-cli-tool/using-as-a-node-module',], + from: [ + '/deploy-monitor/deploy-cli-tool/call-deploy-cli-tool-programmatically', + '/deploy-monitor/deploy-cli-tool/using-as-a-node-module', + '/extensions/deploy-cli-tool/call-deploy-cli-tool-programmatically', + '/extensions/deploy-cli/guides/call-deploy-cli-programmatically', + '/deploy/deploy-cli-tool/call-deploy-cli-tool-programmatically', + ], to: '/deploy-monitor/deploy-cli-tool/use-as-a-node-module', }, { - from: ['/deploy-monitor/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', - '/deploy-monitor/deploy-cli-tool/incorporating-into-multi-environment-workflows', - ], + from: [ + '/deploy-monitor/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', + '/deploy-monitor/deploy-cli-tool/incorporating-into-multi-environment-workflows', + '/extensions/deploy-cli/guides/incorporate-deploy-cli-into-build-environment', + '/extensions/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', + '/deploy/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', + ], to: '/deploy-monitor/deploy-cli-tool/incorporate-into-multi-environment-workflows', }, { - from: ['/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file'], + from: [ + '/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', + '/extensions/deploy-cli/guides/import-export-yaml-file', + '/extensions/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', + '/deploy/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', + ], to: '/deploy-monitor/deploy-cli-tool/keyword-replacement', }, { - from: ['/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure'], + from: [ + '/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', + '/extensions/deploy-cli/guides/import-export-directory-structure', + '/extensions/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', + '/deploy/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', + ], to: '/deploy-monitor/deploy-cli-tool/keyword-replacement', }, { - from: ['/deploy-monitor/deploy-cli-tool/environment-variables-and-keyword-mappings'], + from: [ + '/deploy-monitor/deploy-cli-tool/environment-variables-and-keyword-mappings', + '/extensions/deploy-cli/references/environment-variables-keyword-mappings', + '/extensions/deploy-cli-tool/environment-variables-and-keyword-mappings', + '/deploy/deploy-cli-tool/environment-variables-and-keyword-mappings', + ], to: '/deploy-monitor/deploy-cli-tool/keyword-replacement', }, { - from: ['/deploy-monitor/deploy-cli-tool/deploy-cli-tool-options', - '/deploy-monitor/deploy-cli-tool/using-as-a-cli', - ], + from: [ + '/deploy-monitor/deploy-cli-tool/deploy-cli-tool-options', + '/deploy-monitor/deploy-cli-tool/using-as-a-cli', + '/extensions/deploy-cli/references/deploy-cli-options', + '/extensions/deploy-cli-tool/deploy-cli-tool-options', + '/deploy/deploy-cli-tool/deploy-cli-tool-options', + ], to: '/deploy-monitor/deploy-cli-tool/use-as-a-cli', }, { @@ -4681,71 +4684,6 @@ const redirects = [ ], to: '/deploy-monitor/deploy-cli-tool', }, - { - from: [ - '/extensions/deploy-cli-tool/call-deploy-cli-tool-programmatically', - '/extensions/deploy-cli/guides/call-deploy-cli-programmatically', - '/deploy/deploy-cli-tool/call-deploy-cli-tool-programmatically', - ], - to: '/deploy-monitor/deploy-cli-tool/call-deploy-cli-tool-programmatically', - }, - { - from: [ - '/extensions/deploy-cli/guides/create-deploy-cli-application-manually', - '/extensions/deploy-cli-tool/create-and-configure-the-deploy-cli-application-manually', - '/extensions/deploy-cli-tool/create-and-configure-the-deploy-cli-application', - '/deploy/deploy-cli-tool/create-and-configure-the-deploy-cli-application', - ], - to: '/deploy-monitor/deploy-cli-tool/create-and-configure-the-deploy-cli-application', - }, - { - from: [ - '/extensions/deploy-cli/guides/import-export-directory-structure', - '/extensions/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', - '/deploy/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', - ], - to: '/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure', - }, - { - from: [ - '/extensions/deploy-cli/guides/import-export-yaml-file', - '/extensions/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', - '/deploy/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', - ], - to: '/deploy-monitor/deploy-cli-tool/import-export-tenant-configuration-to-yaml-file', - }, - { - from: [ - '/extensions/deploy-cli/guides/incorporate-deploy-cli-into-build-environment', - '/extensions/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', - '/deploy/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', - ], - to: '/deploy-monitor/deploy-cli-tool/incorporate-deploy-cli-into-build-environment', - }, - { - from: [ - '/extensions/deploy-cli/guides/install-deploy-cli', - '/extensions/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', - '/deploy/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', - ], - to: '/deploy-monitor/deploy-cli-tool/install-and-configure-the-deploy-cli-tool', - }, - { - from: [ - '/extensions/deploy-cli/references/deploy-cli-options', - '/extensions/deploy-cli-tool/deploy-cli-tool-options', - '/deploy/deploy-cli-tool/deploy-cli-tool-options', - ], - to: '/deploy-monitor/deploy-cli-tool/deploy-cli-tool-options', - }, - { - from: [ - '/extensions/deploy-cli/references/environment-variables-keyword-mappings', - '/extensions/deploy-cli-tool/environment-variables-and-keyword-mappings', - '/deploy/deploy-cli-tool/environment-variables-and-keyword-mappings', - ], - to: '/deploy-monitor/deploy-cli-tool/environment-variables-and-keyword-mappings', - }, /* Get Started */ @@ -6596,11 +6534,11 @@ const redirects = [ }, { from: [ - '/mfa/adpative-mfa/adaptive-mfa-rule-actions', - '/login/mfa/adaptive-mfa/adaptive-mfa-rule-actions', + '/mfa/adpative-mfa/adaptive-mfa-rule-actions', + '/login/mfa/adaptive-mfa/adaptive-mfa-rule-actions', '/secure/multi-factor-authentication/adaptive-mfa/adaptive-mfa-rule-actions', '/secure/multi-factor-authentication/adaptive-mfa/adaptive-mfa-rules', - ], + ], to: '/secure/multi-factor-authentication/adaptive-mfa/customize-adaptive-mfa', }, { @@ -6660,7 +6598,7 @@ const redirects = [ '/mfa/auth0-guardian/guardian-error-code-reference', '/mfa/references/guardian-error-code-reference', '/login/mfa/auth0-guardian/guardian-error-code-reference', - '/secure/multi-factor-authentication/auth0-guardian/guardian-error-code-reference' + '/secure/multi-factor-authentication/auth0-guardian/guardian-error-code-reference', ], to: '/secure/multi-factor-authentication/multi-factor-authentication-developer-resources/guardian-error-code-reference', }, @@ -6675,15 +6613,11 @@ const redirects = [ to: '/secure/multi-factor-authentication/customize-mfa', }, { - from: [ - '/secure/multi-factor-authentication/customize-mfa-selection-nul', - ], + from: ['/secure/multi-factor-authentication/customize-mfa-selection-nul'], to: '/secure/multi-factor-authentication/customize-mfa/customize-mfa-selection-universal-login', }, { - from: [ - '/secure/multi-factor-authentication/customize-mfa-enrollments', - ], + from: ['/secure/multi-factor-authentication/customize-mfa-enrollments'], to: '/secure/multi-factor-authentication/customize-mfa/customize-mfa-enrollments-universal-login', }, { @@ -7076,8 +7010,8 @@ const redirects = [ }, { from: [ - '/product-lifecycle/deprecations-and-migrations/tenant-hostname-migration', - '/troubleshoot/product-lifecycle/deprecations-and-migrations/tenant-hostname-migration', + '/product-lifecycle/deprecations-and-migrations/tenant-hostname-migration', + '/troubleshoot/product-lifecycle/deprecations-and-migrations/tenant-hostname-migration', ], to: '/troubleshoot/product-lifecycle/past-migrations/tenant-hostname-migration', }, @@ -7085,27 +7019,22 @@ const redirects = [ from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/migrate-from-edge-js-extensibility-features'], to: '/troubleshoot/product-lifecycle/past-migrations/migrate-from-edge-js-extensibility-features', }, - { from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/migrate-from-oracledb-extensibility-features'], to: '/troubleshoot/product-lifecycle/past-migrations/migrate-from-oracledb-extensibility-features', }, - { from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/custom-claims-migration'], to: '/troubleshoot/product-lifecycle/past-migrations/custom-claims-migration', }, - { from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/migrate-actions-nodejs-16-to-nodejs-18'], to: '/troubleshoot/product-lifecycle/past-migrations/migrate-actions-nodejs-16-to-nodejs-18', }, - - { + { from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/migrate-to-nodejs-16'], to: '/troubleshoot/product-lifecycle/past-migrations/migrate-to-nodejs-16', }, - { from: ['/troubleshoot/product-lifecycle/deprecations-and-migrations/migrate-from-log-extensions'], to: '/troubleshoot/product-lifecycle/past-migrations/migrate-from-log-extensions', @@ -8055,7 +7984,6 @@ const redirects = [ '/policies/authentication-api-endpoint-rate-limits', '/support/policies/rate-limit-policy/authentication-api-endpoint-rate-limits', '/troubleshoot/customer-support/operational-policies/rate-limit-policy/authentication-api-endpoint-rate-limits', - ], to: '/troubleshoot/customer-support/operational-policies/rate-limit-policy', }, @@ -8099,7 +8027,11 @@ const redirects = [ to: '/troubleshoot/customer-support/operational-policies/entity-limit-policy', }, { - from: ['/support/support-center-users', '/dashboard-access/support-center-users', '/get-started/manage-dashboard-access/support-center-users'], + from: [ + '/support/support-center-users', + '/dashboard-access/support-center-users', + '/get-started/manage-dashboard-access/support-center-users', + ], to: '/get-started/manage-dashboard-access/feature-access-by-role', }, @@ -8899,16 +8831,12 @@ const redirects = [ to: '/videos/get-started-series/learn-logout', }, -/* Forms */ + /* Forms */ -{ - from: [ - '/customize/forms/intro-to-forms', - '/customize/forms/fields', - ], + { + from: ['/customize/forms/intro-to-forms', '/customize/forms/fields'], to: '/customize/forms/nodes-and-components', -}, - + }, ]; module.exports = redirects;