From 8c264848447a7fe68b8c91e70f4e93a2e59951b4 Mon Sep 17 00:00:00 2001 From: vivianyentran Date: Wed, 7 Aug 2024 14:01:15 -0700 Subject: [PATCH 1/4] add redirects --- src/middleware.ts | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/middleware.ts b/src/middleware.ts index ae74ea47982f4..ffe18a39182bc 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -3456,6 +3456,50 @@ const DEVELOPER_DOCS_REDIRECTS: Redirect[] = [ from: '/sdk/distributed-tracing/', to: '/sdk/telemetry/traces/distributed-tracing/', }, + { + from: '/api/projects/post-project-service-hooks/', + to: '/api/projects/register-a-new-service-hook/', + }, + { + from: '/clients/cocoa/', + to: '/platforms/apple/', + }, + { + from: '/clients/react-native/', + to: 'platforms/react-native/', + }, + { + from: '/learn/scopes/?platform=rust', + to: '/platforms/rust/enriching-events/scopes/', + }, + { + from: '/platforms/android/android-video/', + to: '/platforms/android/', + }, + { + from: '/platforms/android/tracing/included-instrumentation/', + to: '/platforms/android/tracing/instrumentation/automatic-instrumentation', + }, + { + from: '/platforms/javascript/guides/cordova/tracing/trace-propagation/', + to: '/platforms/javascript/guides/cordova/tracing/instrumentation/custom-instrumentation/', + }, + { + from: '/platforms/javascript/pluggable-integrations/', + to: '/platforms/javascript/configuration/integrations/#lazy-loading-integrations', + }, + { + from: '/platforms/react-native/tracing/included-instrumentation/', + to: '/platforms/react-native/tracing/instrumentation/automatic-instrumentation/', + }, + { + from: '/platforms/rust/env_logger/index.html', + to: '/platforms/rust/configuration/environments/', + }, + { + from: '/clients/cordova/', + to: '/platforms/javascript/guides/cordova/', + }, ]; const redirectMap = new Map( From f2814835136ba43e441cbe288f301dd9943fbe13 Mon Sep 17 00:00:00 2001 From: vivianyentran Date: Wed, 7 Aug 2024 15:36:05 -0700 Subject: [PATCH 2/4] fix link --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index ffe18a39182bc..818fa3513c9fe 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -3469,7 +3469,7 @@ const DEVELOPER_DOCS_REDIRECTS: Redirect[] = [ to: 'platforms/react-native/', }, { - from: '/learn/scopes/?platform=rust', + from: '/learn/scopes/?platform=rust/', to: '/platforms/rust/enriching-events/scopes/', }, { From 0b8f0c414e583e833c30e72cfc20fab5bae0d1ec Mon Sep 17 00:00:00 2001 From: vivianyentran Date: Wed, 7 Aug 2024 16:25:43 -0700 Subject: [PATCH 3/4] fix link --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 818fa3513c9fe..6e5d7dae40291 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -3493,7 +3493,7 @@ const DEVELOPER_DOCS_REDIRECTS: Redirect[] = [ to: '/platforms/react-native/tracing/instrumentation/automatic-instrumentation/', }, { - from: '/platforms/rust/env_logger/index.html', + from: '/platforms/rust/env_logger/index.html/', to: '/platforms/rust/configuration/environments/', }, { From 047d89d42423d4a0044c99ccff6a40f529fa0ec4 Mon Sep 17 00:00:00 2001 From: vivianyentran Date: Wed, 7 Aug 2024 16:46:17 -0700 Subject: [PATCH 4/4] move redirects up --- src/middleware.ts | 88 +++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/middleware.ts b/src/middleware.ts index 6e5d7dae40291..c9bea6186f2dd 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -3261,6 +3261,50 @@ const USER_DOCS_REDIRECTS: Redirect[] = [ from: '/platforms/javascript/guides/aws-lambda/layer/', to: '/platforms/javascript/guides/aws-lambda/install/', }, + { + from: '/api/projects/post-project-service-hooks/', + to: '/api/projects/register-a-new-service-hook/', + }, + { + from: '/clients/cocoa/', + to: '/platforms/apple/', + }, + { + from: '/clients/react-native/', + to: 'platforms/react-native/', + }, + { + from: '/learn/scopes/?platform=rust/', + to: '/platforms/rust/enriching-events/scopes/', + }, + { + from: '/platforms/android/android-video/', + to: '/platforms/android/', + }, + { + from: '/platforms/android/tracing/included-instrumentation/', + to: '/platforms/android/tracing/instrumentation/automatic-instrumentation', + }, + { + from: '/platforms/javascript/guides/cordova/tracing/trace-propagation/', + to: '/platforms/javascript/guides/cordova/tracing/instrumentation/custom-instrumentation/', + }, + { + from: '/platforms/javascript/pluggable-integrations/', + to: '/platforms/javascript/configuration/integrations/#lazy-loading-integrations', + }, + { + from: '/platforms/react-native/tracing/included-instrumentation/', + to: '/platforms/react-native/tracing/instrumentation/automatic-instrumentation/', + }, + { + from: '/platforms/rust/env_logger/index.html/', + to: '/platforms/rust/configuration/environments/', + }, + { + from: '/clients/cordova/', + to: '/platforms/javascript/guides/cordova/', + }, ]; const DEVELOPER_DOCS_REDIRECTS: Redirect[] = [ @@ -3456,50 +3500,6 @@ const DEVELOPER_DOCS_REDIRECTS: Redirect[] = [ from: '/sdk/distributed-tracing/', to: '/sdk/telemetry/traces/distributed-tracing/', }, - { - from: '/api/projects/post-project-service-hooks/', - to: '/api/projects/register-a-new-service-hook/', - }, - { - from: '/clients/cocoa/', - to: '/platforms/apple/', - }, - { - from: '/clients/react-native/', - to: 'platforms/react-native/', - }, - { - from: '/learn/scopes/?platform=rust/', - to: '/platforms/rust/enriching-events/scopes/', - }, - { - from: '/platforms/android/android-video/', - to: '/platforms/android/', - }, - { - from: '/platforms/android/tracing/included-instrumentation/', - to: '/platforms/android/tracing/instrumentation/automatic-instrumentation', - }, - { - from: '/platforms/javascript/guides/cordova/tracing/trace-propagation/', - to: '/platforms/javascript/guides/cordova/tracing/instrumentation/custom-instrumentation/', - }, - { - from: '/platforms/javascript/pluggable-integrations/', - to: '/platforms/javascript/configuration/integrations/#lazy-loading-integrations', - }, - { - from: '/platforms/react-native/tracing/included-instrumentation/', - to: '/platforms/react-native/tracing/instrumentation/automatic-instrumentation/', - }, - { - from: '/platforms/rust/env_logger/index.html/', - to: '/platforms/rust/configuration/environments/', - }, - { - from: '/clients/cordova/', - to: '/platforms/javascript/guides/cordova/', - }, ]; const redirectMap = new Map(