Skip to content

Commit c02c162

Browse files
committed
fixup and prefer middleware.ts for simple redirects
1 parent 6a0ba48 commit c02c162

File tree

2 files changed

+21
-24
lines changed

2 files changed

+21
-24
lines changed

redirects.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -246,34 +246,11 @@ const userDocsRedirects = [
246246
source: '/product/dev-toolbar/:path*',
247247
destination: '/product/sentry-toolbar/:path*',
248248
},
249-
{
250-
source: '/product/explore/session-replay/hydration-errors/',
251-
destination: '/product/issues/issue-details/replay-issues/hydration-error/',
252-
},
253-
{
254-
source: '/product/explore/session-replay/privacy/',
255-
destination: '/security-legal-pii/scrubbing/protecting-user-privacy/',
256-
},
257-
{
258-
source: '/product/explore/session-replay/rage-dead-clicks/',
259-
destination: '/product/issues/issue-details/replay-issues/rage-clicks/',
260-
},
249+
261250
{
262251
source: '/organization/integrations/launchdarkly/',
263252
destination: '/organization/integrations/feature-flag/launchdarkly/',
264253
},
265-
{
266-
source: '/product/explore/session-replay/web/getting-started/',
267-
destination: '/product/explore/session-replay/web/',
268-
},
269-
{
270-
source: '/product/explore/session-replay/web/replay-page-and-filters/',
271-
destination: '/product/explore/session-replay/replay-page-and-filters/',
272-
},
273-
{
274-
source: '/product/explore/session-replay/web/replay-details/',
275-
destination: '/product/explore/session-replay/replay-details/',
276-
},
277254
{
278255
source: '/platforms/javascript/guides/nextjs/sourcemaps/uploading/',
279256
destination: '/platforms/javascript/guides/nextjs/sourcemaps/',

src/middleware.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3326,10 +3326,30 @@ const USER_DOCS_REDIRECTS: Redirect[] = [
33263326
from: '/product/explore/session-replay/getting-started/',
33273327
to: '/product/explore/session-replay/',
33283328
},
3329+
{
3330+
from: '/product/explore/session-replay/web/getting-started/',
3331+
to: '/product/explore/session-replay/web/',
3332+
},
33293333
{
33303334
from: '/product/explore/session-replay/web/replay-page-and-filters/',
33313335
to: '/product/explore/session-replay/replay-page-and-filters/',
33323336
},
3337+
{
3338+
from: '/product/explore/session-replay/web/replay-details/',
3339+
to: '/product/explore/session-replay/replay-details/',
3340+
},
3341+
{
3342+
from: '/product/explore/session-replay/hydration-errors/',
3343+
to: '/product/issues/issue-details/replay-issues/hydration-error/',
3344+
},
3345+
{
3346+
from: '/product/explore/session-replay/rage-dead-clicks/',
3347+
to: '/product/issues/issue-details/replay-issues/rage-clicks/',
3348+
},
3349+
{
3350+
from: '/product/explore/session-replay/privacy/',
3351+
to: '/security-legal-pii/scrubbing/protecting-user-privacy/',
3352+
},
33333353
{
33343354
from: '/product/teams/roles/',
33353355
to: '/organization/membership/#team-level-roles',

0 commit comments

Comments
 (0)