Repository navigation
Redirect broken Node ANR event-loop-block docs URL - #19641
coolguyzone merged 2 commits into
Conversation
The URL .../integrations/anr/event-loop-block/ 404s because event-loop-block is a sibling of anr, not a child. Add redirects to the current eventLoopBlockIntegration docs and point the remaining relative ANR link at that page via PlatformLink. Fixes getsentry#18899
|
@SatvikMishra08 is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
coolguyzone
left a comment
There was a problem hiding this comment.
Hey @SatvikMishra08 thanks for digging into this one — the core redirect is right, and the 404 is a good catch, but a couple of things to update:
1. Drop the common/ redirect.
/platforms/javascript/common/* isn't a URL the site ever serves,common/
is a source directory that gets expanded into each guide at build time, so
nothing can request that path. There's an existing redirect in redirects.js
using the same shape, and you can see what it does:
/platforms/javascript/common/configuration/application-not-responding/
→ 308 → /platforms/javascript/common/configuration/event-loop-block/ → 404
It turns one 404 into a redirect to another 404. That one slipped through
review, so the pattern looks legitimate, but we shouldn't add a second.
**2. Revert the anr.mdx link
The existing [Event Loop Blocoop-block) on line 27
already works. From /guides/nions/anr/, the ../../
resolves to /guides/node/conf/, which returns 200
and is titled "Event Loop Bloce link text.
The PlatformLink you've swapped in points at
/configuration/integrations/event-loop-block/, which is a different page
("Event Loop Block"), and it's 15 already links to.
So the change retargets a working link and loses the pointer to the overview
page.
Drop the /platforms/javascript/common/... redirect (common/ is a source path, not a served URL) and restore the working relative link to the Event Loop Block overview on anr.mdx.
|
Thanks @coolguyzone — applied both review notes:
|
|
Hey @coolguyzone, both of your notes are in now (only the |
|
Hi @coolguyzone — gentle ping now that we’re past the docs SLA window. Review notes from earlier are still in (guides/:guide redirect only; relative ANR link restored). Happy to adjust anything else if needed. Thanks! |
|
Hi @coolguyzone — one more gentle bump on this docs fix. Happy to adjust anything if needed. Thanks! |
DESCRIBE YOUR PR
The Node ANR integration docs 404 when the event-loop page is requested as a child of the ANR page (
.../integrations/anr/event-loop-block/). That path should land on the currenteventLoopBlockIntegrationdocs.PlatformLinkso it uses the same destinationVerified live:
.../integrations/anr/event-loop-block/still returns 404; sibling.../integrations/event-loop-block/returns 200.Fixes #18899
IS YOUR CHANGE URGENT?
SLA
Please give the docs team up to 1 week to review.
PRE-MERGE CHECKLIST
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.