From e27d8ad76591f0b056870cc35e55afcd2bc54c2f Mon Sep 17 00:00:00 2001 From: Amanda VS Date: Fri, 20 Oct 2023 16:36:01 -0400 Subject: [PATCH 1/3] microsite removal added public false and redirect for this microsite since it is still in the sitemap --- articles/microsites/call-api/call-api-m2m-app.md | 1 + config/redirects.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/articles/microsites/call-api/call-api-m2m-app.md b/articles/microsites/call-api/call-api-m2m-app.md index 51dcd34287..5f8d1154f5 100644 --- a/articles/microsites/call-api/call-api-m2m-app.md +++ b/articles/microsites/call-api/call-api-m2m-app.md @@ -3,6 +3,7 @@ title: Call Your API from a Machine-to-Machine App description: Everything you need to know to call your API from your machine-to-machine (M2M) app ctaText: Go to Quickstart ctaLink: /docs/quickstart/backend +public: false template: microsite topics: - authentication diff --git a/config/redirects.js b/config/redirects.js index 6c91d0509b..dbab38d86a 100644 --- a/config/redirects.js +++ b/config/redirects.js @@ -959,6 +959,13 @@ const redirects = [ }, /* MICROSITES */ + [ + from: [ + '/microsites/call-api/call-api-m2m-app', + ], + to: '/get-started/authentication-and-authorization-flow/client-credentials-flow' + + ], /* ARCHITECTURE SCENARIOS */ From faeeba5e7dfd6055fc00d12e9fdb6c7cc2f4372e Mon Sep 17 00:00:00 2001 From: Amanda VS Date: Fri, 20 Oct 2023 16:52:24 -0400 Subject: [PATCH 2/3] missing comma --- config/redirects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/redirects.js b/config/redirects.js index dbab38d86a..1f29396d17 100644 --- a/config/redirects.js +++ b/config/redirects.js @@ -963,7 +963,7 @@ const redirects = [ from: [ '/microsites/call-api/call-api-m2m-app', ], - to: '/get-started/authentication-and-authorization-flow/client-credentials-flow' + to: '/get-started/authentication-and-authorization-flow/client-credentials-flow', ], From f55198f12e3c832bbdf64f5d7bcdfa99dd6cec73 Mon Sep 17 00:00:00 2001 From: Amanda VS Date: Fri, 20 Oct 2023 17:02:07 -0400 Subject: [PATCH 3/3] wrong brackets :/ --- config/redirects.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/redirects.js b/config/redirects.js index 1f29396d17..cf4a11ca08 100644 --- a/config/redirects.js +++ b/config/redirects.js @@ -959,13 +959,11 @@ const redirects = [ }, /* MICROSITES */ - [ - from: [ - '/microsites/call-api/call-api-m2m-app', - ], + { + from: ['/microsites/call-api/call-api-m2m-app'], to: '/get-started/authentication-and-authorization-flow/client-credentials-flow', - ], + }, /* ARCHITECTURE SCENARIOS */