René's URL Explorer Experiment


Title: Router: NoMatch escapes route recognition on Safari 17.6 and the navigation never settles · Issue #71038 · angular/angular · GitHub

Open Graph Title: Router: NoMatch escapes route recognition on Safari 17.6 and the navigation never settles · Issue #71038 · angular/angular

X Title: Router: NoMatch escapes route recognition on Safari 17.6 and the navigation never settles · Issue #71038 · angular/angular

Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.

Open Graph Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.

X Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.

Opengraph URL: https://github.com/angular/angular

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router: NoMatch escapes route recognition on Safari 17.6 and the navigation never settles","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nNo\n\n### Description\n\nIn production, Safari 17.6 users sporadically click a link and the navigation neither completes nor fails: no `NavigationEnd`, no `NavigationError`, and the promise returned by `router.navigate()` never settles. Instead, the app's `ErrorHandler` receives the router's internal `NoMatch` (empty message, `segmentGroup` property) through `NgZone.onError`, reported by zone.js as an unhandled rejection.\n\nThe app uses zone.js 0.15.1 with `provideZoneChangeDetection()` and is built with `@angular/build`, so async/await is lowered to generators with esbuild's `__async` helper. Mapped against the production chunks, the stack reads:\n\n| Frame | Code |\n|---|---|\n| `t@chunk-FFUPTH3R.js:1:38159` | `NoMatch` constructor |\n| `@chunk-FFUPTH3R.js:1:45633` | `throw new NoMatch(rawSegment)` in `Recognizer.matchSegmentAgainstRoute` |\n| `next@[native code]` | generator resume |\n| `o@chunk-KFP6Q3NT.js:1:1425` | esbuild `__async` step: `o = f => { try { i(c.next(f)) } catch (j) { e(j) } }` |\n| `@polyfills.js:2:562` | zone.js wrapper of a `then` callback, whose `catch` rejects the chained promise |\n\nOur reading:\n\n1. The generator of `matchSegmentAgainstRoute` resumes after `await firstValueFrom(matchWithChecks(…))` and throws `NoMatch`, as designed.\n2. The `try/catch` in `o` does not catch it, although it surrounds the `c.next(f)` call that threw. JavaScript semantics rule this out, so we suspect a defect in Safari 17.6's JavaScriptCore.\n3. zone.js catches the exception in its `then` wrapper, rejects the promise from `Promise.resolve(value).then(o, p)`, which nobody observes, and reports it as an unhandled rejection. zone.js 0.15 passes the original value on.\n4. The promise of `matchSegmentAgainstRoute` never settles, so `processSegment` waits forever and the navigation hangs until the next navigation supersedes it.\n\nIt shows in the router because the recognizer signals \"this route does not match\" by throwing `NoMatch` and catching it in `processSegment`. With many sibling routes in named outlets (126 children in our case), one navigation throws up to about 70 exceptions through async functions, by far the most in the application. The failure mode depends on the recognize stage using async/await (#62994). #70900 mentions `NoMatch` and `AbsoluteRedirect` escaping in production; this may be the same thing.\n\n**Suggestion:** signal \"no match\" with a return value instead of an exception. For example, `processSegmentAgainstRoute` and `matchSegmentAgainstRoute` could resolve to a sentinel that `processSegment` checks before it tries the next route. That takes the exception flow through async/await out of every navigation, whatever the engine does, and saves creating dozens of `Error` objects with stack traces per navigation.\n\n### Please provide a link to a minimal reproduction of the bug\n\nNot reproduced outside Safari 17.6 yet, see \"Anything else?\".\n\n### Please provide the exception or error you saw\n\n```true\nError\n    t@https://\u003chost>/chunk-FFUPTH3R.js:1:38159\n    @https://\u003chost>/chunk-FFUPTH3R.js:1:45633\n    next@[native code]\n    o@https://\u003chost>/chunk-KFP6Q3NT.js:1:1425\n    onInvoke@https://\u003chost>/chunk-GR63O44E.js:4:19837\n    run@https://\u003chost>/polyfills-P23JZYKH.js:1:7847\n    @https://\u003chost>/polyfills-P23JZYKH.js:2:562\n    onInvokeTask@https://\u003chost>/chunk-GR63O44E.js:4:19655\n    runTask@https://\u003chost>/polyfills-P23JZYKH.js:1:8496\n    Y@https://\u003chost>/polyfills-P23JZYKH.js:1:15714\n    invokeTask@https://\u003chost>/polyfills-P23JZYKH.js:1:14763\n\nUser agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n@angular/core, @angular/router: 21.2.12\n@angular/build, @angular/cli: 21.2.10\nzone.js: 0.15.1\nTypeScript: 5.9\nBrowser: Safari 17.6 (macOS)\n\nAngular CLI       : 21.2.10\nAngular           : 21.2.12\nNode.js           : 24.16.0\nPackage Manager   : npm 11.13.0\nOperating System  : win32 x64\n\n┌──────────────────────────────────┬───────────────────┬───────────────────┐\n│ Package                          │ Installed Version │ Requested Version │\n├──────────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build                   │ 21.2.10           │ ^21.2.10          │\n│ @angular/cdk                     │ 21.2.10           │ ^21.2.10          │\n│ @angular/cli                     │ 21.2.10           │ ^21.2.10          │\n│ @angular/common                  │ 21.2.12           │ ^21.2.12          │\n│ @angular/compiler                │ 21.2.12           │ ^21.2.12          │\n│ @angular/compiler-cli            │ 21.2.12           │ ^21.2.12          │\n│ @angular/core                    │ 21.2.12           │ ^21.2.12          │\n│ @angular/elements                │ 21.2.12           │ ^21.2.12          │\n│ @angular/forms                   │ 21.2.12           │ ^21.2.12          │\n│ @angular/language-service        │ 21.2.12           │ ^21.2.12          │\n│ @angular/localize                │ 21.2.12           │ ^21.2.12          │\n│ @angular/material                │ 21.2.10           │ ^21.2.10          │\n│ @angular/material-moment-adapter │ 21.2.10           │ ^21.2.10          │\n│ @angular/platform-browser        │ 21.2.12           │ ^21.2.12          │\n│ @angular/router                  │ 21.2.12           │ ^21.2.12          │\n│ rxjs                             │ 7.8.2             │ ^7.8.2            │\n│ typescript                       │ 5.9.3             │ ^5.9.2            │\n│ zone.js                          │ 0.15.1            │ ^0.15.0           │\n└──────────────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\nReproduction attempts: the production chunks, run against our route configuration in JavaScriptCore via Bun 1.0.0 to 1.3.5 (20,000 to 40,000 recognitions each, plain and inside NgZone, with aggressive JIT settings), never failed. In the field the failures are sporadic and sit between successful navigations to the same URLs.\n\nWorkaround in our app, in case it helps others: the `ErrorHandler` recognizes the escaped `NoMatch` (`'segmentGroup' in error`) and restarts `router.currentNavigation()` while its `finalUrl` is unset, in a `setTimeout` because zone.js reports unhandled rejections after draining the microtask queue. We also moved the most used routes to the front of each outlet to cut the number of `NoMatch` exceptions per navigation.","author":{"url":"https://github.com/MilesAl","@type":"Person","name":"MilesAl"},"datePublished":"2026-09-29T11:52:09Z","url":"https://github.com/angular/angular/issues/71038"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:74bcbd74-114f-2c94-37a4-e352dc7a59bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8FC8:2FDEEB:2FB55E:3E3A18:6B06164B
html-safe-nonce79621b10db520eb4a65f26fff134b5d180d910f0e6f5f7253ba762230c07598b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkM4OjJGREVFQjoyRkI1NUU6M0UzQTE4OjZCMDYxNjRCIiwidmlzaXRvcl9pZCI6IjIzOTcyNjI5ODMzMzc0ODE4MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9529b320cb80b6953b33926ba994251be5e306dda3afc07a296f9065f85c69ad
hovercard-subject-tagrepository:24195339
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular/issues/71038
twitter:imagehttps://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531
og:image:altDeliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-cache
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/71038#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F71038
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%2Fangular%2Fangular%2Fissues%2F71038
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/71038
Reloadhttps://github.com/angular/angular/issues/71038
Reloadhttps://github.com/angular/angular/issues/71038
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/71038
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/71038
Router: NoMatch escapes route recognition on Safari 17.6 and the navigation never settleshttps://github.com/angular/angular/issues/71038#top
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/MilesAl
MilesAlhttps://github.com/MilesAl
on Sep 29, 2026https://github.com/angular/angular/issues/71038#issue-5630076961
#62994https://github.com/angular/angular/pull/62994
#70900https://github.com/angular/angular/pull/70900
angular-robothttps://github.com/apps/angular-robot
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Sep 29, 2026https://github.com/angular/angular/issues/71038#event-32076085956
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Sep 29, 2026https://github.com/angular/angular/issues/71038#event-32076088572
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 29, 2026https://github.com/angular/angular/issues/71038#issuecomment-5891131310
#70900https://github.com/angular/angular/pull/70900
fc6a7eehttps://github.com/angular/angular/commit/fc6a7eea682a76f03e85c4786aed3b02bdb06968
https://github.com/MilesAl
MilesAlhttps://github.com/MilesAl
on Sep 30, 2026https://github.com/angular/angular/issues/71038#issuecomment-5912018198
#70900https://github.com/angular/angular/pull/70900
fc6a7eehttps://github.com/angular/angular/commit/fc6a7eea682a76f03e85c4786aed3b02bdb06968
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 30, 2026https://github.com/angular/angular/issues/71038#issuecomment-5913092097
https://github.com/MilesAl
MilesAlhttps://github.com/MilesAl
on Sep 30, 2026https://github.com/angular/angular/issues/71038#issuecomment-5913726773
JeanMechehttps://github.com/JeanMeche
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Oct 29, 2026https://github.com/angular/angular/issues/71038#event-34632121556
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/71038
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/71038
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.