René's URL Explorer Experiment


Title: fix(browser): Instrument empty-URL XHR and show the page URL in breadcrumbs by kunal649 · Pull Request #26201 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(browser): Instrument empty-URL XHR and show the page URL in breadcrumbs by kunal649 · Pull Request #26201 · getsentry/sentry-javascript

X Title: fix(browser): Instrument empty-URL XHR and show the page URL in breadcrumbs by kunal649 · Pull Request #26201 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Why: fetch('') is instrumented, but xhr.open('GET', '') was not, and once an empty URL request is instrumented its breadcrumb shows url: "". This PR fixes both xh...

X Description: Why: fetch('') is instrumented, but xhr.open('GET', '') was not, and once an empty URL request is instrumented its breadcrumb shows url: "&a...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/26201

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b6ff64b6-2706-6266-98bf-cad49e13559e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCDA8:2FEBCD:268A7:35254:6B041643
html-safe-nonceb086bf42e715e5aeedb5762e5a04156005c053e7ba654a29ea7a54ce7574ff3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREE4OjJGRUJDRDoyNjhBNzozNTI1NDo2QjA0MTY0MyIsInZpc2l0b3JfaWQiOiI2MDQ1Mjc4NTg2NzQxNzI0NzM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8ed5bfd592f75a8cfadf5f8d9acccf3382a375bd11bc416c0471a8130e3f395c
hovercard-subject-tagpull_request:5202095496
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/26201/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/93220e532ae7961f059bde4227a37142bc8d93b80b3c78d99ba35653f535f7ce/getsentry/sentry-javascript/pull/26201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93220e532ae7961f059bde4227a37142bc8d93b80b3c78d99ba35653f535f7ce/getsentry/sentry-javascript/pull/26201
og:image:altWhy: fetch('') is instrumented, but xhr.open('GET', '') was not, and once an empty URL request is instrumented its breadcrumb shows url: "". This PR fixes both xh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekunal649
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/26201#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F26201
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F26201
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/26201
Reloadhttps://github.com/getsentry/sentry-javascript/pull/26201
Reloadhttps://github.com/getsentry/sentry-javascript/pull/26201
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests56 (56)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
s1gr1dhttps://github.com/s1gr1d
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
kunal649:kunal/fix/empty-url-xhr-and-breadcrumbhttps://github.com/kunal649/sentry-javascript/tree/kunal/fix/empty-url-xhr-and-breadcrumb
Conversationhttps://github.com/getsentry/sentry-javascript/pull/26201
Commits4 (4)https://github.com/getsentry/sentry-javascript/pull/26201/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/26201/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/26201/files
fix(browser): Instrument empty-URL XHR and show the page URL in breadcrumbshttps://github.com/getsentry/sentry-javascript/pull/26201#top
s1gr1dhttps://github.com/s1gr1d
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
kunal649:kunal/fix/empty-url-xhr-and-breadcrumbhttps://github.com/kunal649/sentry-javascript/tree/kunal/fix/empty-url-xhr-and-breadcrumb
https://github.com/kunal649
kunal649https://github.com/kunal649
Nov 7, 2026https://github.com/getsentry/sentry-javascript/pull/26201#issue-6259636556
#13168https://github.com/getsentry/sentry-javascript/issues/13168
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/kunal649
kunal649https://github.com/kunal649
code ownerhttps://github.com/getsentry/sentry-javascript/blob/6c6c040256450996682d7b73b3f2693cc4bfbb69/.github/CODEOWNERS#L5
November 7, 2026 13:33https://github.com/getsentry/sentry-javascript/pull/26201#event-35435216093
https://github.com/kunal649
kunal649https://github.com/kunal649
Lms24https://github.com/Lms24
msonnbhttps://github.com/msonnb
November 7, 2026 13:33https://github.com/getsentry/sentry-javascript/pull/26201#event-35435216459
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Nov 7, 2026https://github.com/getsentry/sentry-javascript/pull/26201#event-35435220955
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Nov 9, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#pullrequestreview-5828576755
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/26201/files
s1gr1dhttps://github.com/s1gr1d
https://github.com/getsentry/sentry-javascript/pull/26201#pullrequestreview-5828576755
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
packages/browser/src/integrations/breadcrumbs.tshttps://github.com/getsentry/sentry-javascript/pull/26201/files#diff-5d832fb942d0fc07bb04b5b78afa3a58a64695b93e738e0b54b65925d3464a40
s1gr1dhttps://github.com/s1gr1d
Nov 9, 2026https://github.com/getsentry/sentry-javascript/pull/26201#discussion_r4514815469
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
kunal649https://github.com/kunal649
Nov 10, 2026https://github.com/getsentry/sentry-javascript/pull/26201#discussion_r4526639432
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
packages/browser/test/integrations/breadcrumbs.test.tshttps://github.com/getsentry/sentry-javascript/pull/26201/files#diff-435160953e17fc03e9b9e4e815bacdb389ce72cc50497a295667b2ab41b70e35
s1gr1dhttps://github.com/s1gr1d
Nov 9, 2026https://github.com/getsentry/sentry-javascript/pull/26201#discussion_r4514826913
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Nov 10, 2026https://github.com/getsentry/sentry-javascript/pull/26201#event-35682049097
kunal649https://github.com/kunal649
November 10, 2026 20:32https://github.com/getsentry/sentry-javascript/pull/26201#commits-pushed-a4f2c3f
https://github.com/kunal649
fix(browser): Instrument empty-URL XHR and use the page URL in breadc…https://github.com/getsentry/sentry-javascript/pull/26201/commits/a4f2c3f635adef9e128e5599b3f148784f62878b
a4f2c3fhttps://github.com/getsentry/sentry-javascript/pull/26201/commits/a4f2c3f635adef9e128e5599b3f148784f62878b
https://github.com/kunal649
fix(browser): only strip fragment on empty breadcrumb URLshttps://github.com/getsentry/sentry-javascript/pull/26201/commits/149a4b30f8661e4ccb4a589706c8356278b2121a
149a4b3https://github.com/getsentry/sentry-javascript/pull/26201/commits/149a4b30f8661e4ccb4a589706c8356278b2121a
https://github.com/kunal649
kunal649https://github.com/kunal649
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/6206414f024b0236aafee0f0dca9fde77207abd9..149a4b30f8661e4ccb4a589706c8356278b2121a
6206414https://github.com/getsentry/sentry-javascript/commit/6206414f024b0236aafee0f0dca9fde77207abd9
149a4b3https://github.com/getsentry/sentry-javascript/commit/149a4b30f8661e4ccb4a589706c8356278b2121a
Compare https://github.com/getsentry/sentry-javascript/compare/6206414f024b0236aafee0f0dca9fde77207abd9..149a4b30f8661e4ccb4a589706c8356278b2121a
November 10, 2026 15:09https://github.com/getsentry/sentry-javascript/pull/26201#event-35695342618
https://github.com/kunal649
kunal649https://github.com/kunal649
November 10, 2026 15:09https://github.com/getsentry/sentry-javascript/pull/26201#event-35695342806
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Nov 10, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#pullrequestreview-5844234851
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/26201#pullrequestreview-5844234851
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTo2OWJhNzI3NC1kYmM0LTRjZDMtOGQ3Mi01YWM0YTMwOGJlZjUiLCJlbmNyeXB0aW9uS2V5IjoiVWtGNUR3SHZFWlVxY0dTclpOMW5iVEgyYkNkalItRkhOUFV6cFJLUXliUSIsImJyYW5jaCI6Imt1bmFsL2ZpeC9lbXB0eS11cmwteGhyLWFuZC1icmVhZGNydW1iIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktamF2YXNjcmlwdCIsInByb3ZpZGVyIjoiZ2l0aHViIn19
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot/repository-rules/11898?manageLearning=1
Cursor Bugbothttps://cursor.com/bugbot
149a4b3https://github.com/getsentry/sentry-javascript/commit/149a4b30f8661e4ccb4a589706c8356278b2121a
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
packages/browser/src/integrations/breadcrumbs.tshttps://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a#diff-5d832fb942d0fc07bb04b5b78afa3a58a64695b93e738e0b54b65925d3464a40
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
packages/browser/src/integrations/breadcrumbs.tshttps://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a#diff-5d832fb942d0fc07bb04b5b78afa3a58a64695b93e738e0b54b65925d3464a40
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Nov 10, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#pullrequestreview-5844886109
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
November 10, 2026 15:54https://github.com/getsentry/sentry-javascript/pull/26201#event-35700070840
https://github.com/kunal649
fix(browser): pass client to getBreadcrumbUrl for XHR and fetch bread…https://github.com/getsentry/sentry-javascript/pull/26201/commits/933852e00cc90a95dd5982047828d237251f8b72
933852ehttps://github.com/getsentry/sentry-javascript/pull/26201/commits/933852e00cc90a95dd5982047828d237251f8b72
November 10, 2026 16:00https://github.com/getsentry/sentry-javascript/pull/26201#event-35700742684
https://github.com/kunal649
Merge branch 'develop' into kunal/fix/empty-url-xhr-and-breadcrumbhttps://github.com/getsentry/sentry-javascript/pull/26201/commits/1074ac6f0fe8cff739c09a387e93583da81310a6
1074ac6https://github.com/getsentry/sentry-javascript/pull/26201/commits/1074ac6f0fe8cff739c09a387e93583da81310a6
https://github.com/kunal649
kunal649https://github.com/kunal649
Nov 10, 2026https://github.com/getsentry/sentry-javascript/pull/26201#issuecomment-6772358956
@s1gr1dhttps://github.com/s1gr1d
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
15f3d8dhttps://github.com/getsentry/sentry-javascript/commit/15f3d8d4a183fafd2a780ff521f215b0b6c0c6a1
Nov 11, 2026https://github.com/getsentry/sentry-javascript/pull/26201#event-35785179064
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/apps/javascript-sdk-gitflow
javascript-sdk-gitflowhttps://github.com/apps/javascript-sdk-gitflow
Nov 11, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#ref-pullrequest-6326218135
chore: Add external contributor to CHANGELOG.md #26275 https://github.com/getsentry/sentry-javascript/pull/26275
JPeer264https://github.com/JPeer264
Nov 11, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#ref-commit-20a5f10
https://github.com/apps/javascript-sdk-gitflow
https://github.com/s1gr1d
chore: Add external contributor to CHANGELOG.md (https://github.com/getsentry/sentry-javascript/commit/20a5f1000ab5ef466070bed0ae0cce8426ab4124
#26275https://github.com/getsentry/sentry-javascript/pull/26275
)https://github.com/getsentry/sentry-javascript/commit/20a5f1000ab5ef466070bed0ae0cce8426ab4124
20a5f10https://github.com/getsentry/sentry-javascript/commit/20a5f1000ab5ef466070bed0ae0cce8426ab4124
#26201https://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Nov 13, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#ref-issue-2444416157
Always attach some URL/target data point to fetch/xhr/request errors #13168 https://github.com/getsentry/sentry-javascript/issues/13168
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Nov 16, 2026 https://github.com/getsentry/sentry-javascript/pull/26201#ref-issue-6425459305
publish: getsentry/sentry-javascript@11.13.0 getsentry/publish#10451 https://github.com/getsentry/publish/issues/10451
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F26201
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a
https://github.com/s1gr1d
s1gr1d https://github.com/s1gr1d
https://github.com/getsentry/sentry-javascript/pull/26201/files/149a4b30f8661e4ccb4a589706c8356278b2121a
https://github.com/Lms24
Lms24 https://github.com/Lms24
https://github.com/msonnb
msonnb https://github.com/msonnb
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/s1gr1d
s1gr1d https://github.com/s1gr1d
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/26201
https://github.com/kunal649
https://github.com/s1gr1d
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.