Skip to content

fix(agents-insights): redirect from LLM #14318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2025
Merged

Conversation

obostjancic
Copy link
Member

No description provided.

@obostjancic obostjancic requested a review from matejminar July 10, 2025 11:34
Copy link

vercel bot commented Jul 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 0:03am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 0:03am

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Redirect Chain Drops Path Parameters

The new redirect rule creates an inefficient redirect chain and loses path parameters. URLs matching /product/insights/llm-monitoring/:path* first redirect to /product/insights/ai/:path*, then immediately to /product/insights/agents/. The second redirect drops the :path* segment, causing specific subpages to incorrectly land on the generic /product/insights/agents/ page. The new redirect's destination should preserve the path (e.g., /product/insights/agents/:path*).

redirects.js#L969-L976

sentry-docs/redirects.js

Lines 969 to 976 in ffa70b6

{
source: '/product/insights/llm-monitoring/:path*',
destination: '/product/insights/ai/:path*',
},
{
source: '/product/insights/ai/:path*',
destination: '/product/insights/agents/',
},

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

Copy link

codecov bot commented Jul 10, 2025

Bundle Report

Changes will decrease total bundle size by 15 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.81MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 11.9MB -9 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 878.27kB -0.0%
static/chunks/1831-*.js -3 bytes 421.22kB -0.0%
static/AAXZVndEz3hWiyeA-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/AAXZVndEz3hWiyeA-*.js (New) 684 bytes 684 bytes 100.0% 🚀
static/PA_EGTlkmGbxwdpP8t47L/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/PA_EGTlkmGbxwdpP8t47L/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.67MB -0.0%
../instrumentation.js -3 bytes 997.28kB -0.0%
9523.js -3 bytes 973.22kB -0.0%

@obostjancic obostjancic merged commit 9afd3b9 into master Jul 10, 2025
15 checks passed
@obostjancic obostjancic deleted the ogi/fix/ai-redirect branch July 10, 2025 12:47
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.

2 participants