Skip to content

fix: Add missing redirects for /integrations/slack/ and /integrations/project-mgmt/jira/#17626

Open
sfanahata wants to merge 1 commit intomasterfrom
fix/add-missing-slack-redirect
Open

fix: Add missing redirects for /integrations/slack/ and /integrations/project-mgmt/jira/#17626
sfanahata wants to merge 1 commit intomasterfrom
fix/add-missing-slack-redirect

Conversation

@sfanahata
Copy link
Copy Markdown
Contributor

Summary

  • Adds redirect from /integrations/slack/ to /integrations/notification-incidents/slack/
  • Adds redirect from /integrations/project-mgmt/jira/ to /integrations/issue-tracking/jira/

Problem

The wildcard redirect in redirects.js (/product/integrations/:path*/integrations/:path*) strips the /product/ prefix but doesn't handle integration pages that live under subcategories. This causes 404s when users hit these URLs from links in the Sentry UI:

  • /product/integrations/slack/ → wildcard turns it into /integrations/slack/404 (actual page is at /integrations/notification-incidents/slack/)
  • /product/integrations/project-mgmt/jira/#jira-server → wildcard turns it into /integrations/project-mgmt/jira/404 (actual page is at /integrations/issue-tracking/jira/)

Where these links exist in getsentry/sentry:

  • /product/integrations/slack/src/sentry_plugins/slack/README.rst
  • /product/integrations/slack/#upgrading-slacksrc/sentry/templates/sentry/integrations/slack/reauth-introduction.html (user-facing during Slack reauth)
  • /product/integrations/project-mgmt/jira/#jira-server — locale translation files (django.po)

Fix

Added two simple redirects in middleware.ts to catch the post-wildcard paths and route them to the correct canonical pages.

…/project-mgmt/jira/

The wildcard redirect in redirects.js (/product/integrations/:path* -> /integrations/:path*) strips the /product/ prefix but doesn't account for integration pages that sit under subcategories. This causes 404s for:

- /product/integrations/slack/ -> /integrations/slack/ (should be /integrations/notification-incidents/slack/)
- /product/integrations/project-mgmt/jira/ -> /integrations/project-mgmt/jira/ (should be /integrations/issue-tracking/jira/)

Both of these paths are linked from the Sentry UI codebase.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment May 5, 2026 5:40pm
sentry-docs Ready Ready Preview, Comment May 5, 2026 5:40pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant