From 83fac1e40286887717d1a9c3bdf626a9dda0eada Mon Sep 17 00:00:00 2001 From: vivianyentran <20403606+vivianyentran@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:19:02 -0700 Subject: [PATCH] add redirects (#11025) * add redirects * fix link * fix link * move redirects up --- src/middleware.ts | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/middleware.ts b/src/middleware.ts index ae74ea47982f4..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[] = [