René's URL Explorer Experiment


Title: withHashLocation is not compatible with SSR (throws TypeError: Invalid URL when parsing "#/") · Issue #68322 · angular/angular · GitHub

Open Graph Title: withHashLocation is not compatible with SSR (throws TypeError: Invalid URL when parsing "#/") · Issue #68322 · angular/angular

X Title: withHashLocation is not compatible with SSR (throws TypeError: Invalid URL when parsing "#/") · Issue #68322 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description When the withHashLocation feature is used under SSR, the build will hang after throwing an exception. Please provide a link to a minimal ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description When the withHashLocation feature is used under SSR, the build will hang after throwing an except...

X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description When the withHashLocation feature is used under SSR, the build will hang after throwing an except...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"withHashLocation is not compatible with SSR (throws TypeError: Invalid URL when parsing \"#/\")","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nYes\n\n### Description\n\nWhen the `withHashLocation` feature is used under SSR, the build will hang after throwing an exception.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/eblocha/ng-ssr-hash-routing\n\n### Please provide the exception or error you saw\n\n```true\nERROR TypeError: Invalid URL\n    at new URL (node:internal/url:819:25)\n    at HD (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:40:31721)\n    at e.replaceState (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:40:32574)\n    at e.replaceState (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:31:54829)\n    at e.replaceState (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:31:52733)\n    at e.setBrowserUrl (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:40:95885)\n    at e.handleRouterEvent (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:40:95478)\n    at Object.next (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:40:98624)\n    at uf.next (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:4:3112)\n    at ao._next (file:///Users/elliot.blocha/projects/scratch/ssr-test/.angular/prerender-root/fa99184b-c1cb-46ed-80af-134e4ceff1a7/main.server.mjs:4:2795) {\n  code: 'ERR_INVALID_URL',\n  input: '#/'\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI       : 21.2.7\nAngular           : 21.2.9\nNode.js           : 24.15.0\nPackage Manager   : npm 11.12.1\nOperating System  : darwin arm64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package                   │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build            │ 21.2.7            │ ^21.2.7           │\n│ @angular/cli              │ 21.2.7            │ ^21.2.7           │\n│ @angular/common           │ 21.2.9            │ ^21.2.9           │\n│ @angular/compiler         │ 21.2.9            │ ^21.2.9           │\n│ @angular/compiler-cli     │ 21.2.9            │ ^21.2.9           │\n│ @angular/core             │ 21.2.9            │ ^21.2.9           │\n│ @angular/forms            │ 21.2.9            │ ^21.2.9           │\n│ @angular/platform-browser │ 21.2.9            │ ^21.2.9           │\n│ @angular/platform-server  │ 21.2.9            │ ^21.2.9           │\n│ @angular/router           │ 21.2.9            │ ^21.2.9           │\n│ @angular/ssr              │ 21.2.7            │ ^21.2.7           │\n│ rxjs                      │ 7.8.2             │ ~7.8.0            │\n│ typescript                │ 5.9.3             │ ~5.9.2            │\n│ vitest                    │ 4.1.0             │ ^4.0.8            │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/eblocha","@type":"Person","name":"eblocha"},"datePublished":"2026-04-21T15:50:18Z","url":"https://github.com/angular/angular/issues/68322"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4823fecf-0c8b-45d8-e5d7-9869ee4dedb7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEE04:3524E1:C10CD:114385:6AFDCCBD
html-safe-nonce539fcc673b744b2114ddd5fcdcc485966f932c26e1e7a4e7825a779a31bd4383
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTA0OjM1MjRFMTpDMTBDRDoxMTQzODU6NkFGRENDQkQiLCJ2aXNpdG9yX2lkIjoiODI3NDgxMDIwNjE3NzU3ODE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf63281aa0910293237b759a71a8b88f09fa516ff2b57ffde47e3dd77f8850a13
hovercard-subject-tagissue:4307286790
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/68322/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5f5edcab0b65506d114244fc513af34917a7d253d4239ed237a126f80b1831b9/angular/angular/issues/68322
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5f5edcab0b65506d114244fc513af34917a7d253d4239ed237a126f80b1831b9/angular/angular/issues/68322
og:image:altWhich @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description When the withHashLocation feature is used under SSR, the build will hang after throwing an except...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeblocha
hostnamegithub.com
expected-hostnamegithub.com
None26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7
turbo-cache-controlno-preview
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
release68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/68322#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F68322
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%2F68322
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/68322
Reloadhttps://github.com/angular/angular/issues/68322
Reloadhttps://github.com/angular/angular/issues/68322
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues833 (833)https://github.com/angular/angular/issues
Pull requests126 (126)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/68322
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/68322
#68325https://github.com/angular/angular/pull/68325
withHashLocation is not compatible with SSR (throws TypeError: Invalid URL when parsing "#/")https://github.com/angular/angular/issues/68322#top
#68325https://github.com/angular/angular/pull/68325
https://github.com/alan-agius4
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/eblocha
eblochahttps://github.com/eblocha
on Apr 21, 2026https://github.com/angular/angular/issues/68322#issue-4307286790
https://github.com/eblocha/ng-ssr-hash-routinghttps://github.com/eblocha/ng-ssr-hash-routing
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Apr 21, 2026https://github.com/angular/angular/issues/68322#event-24745051710
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Apr 21, 2026https://github.com/angular/angular/issues/68322#issuecomment-4294224783
#68194https://github.com/angular/angular/pull/68194
workaround mentioned herehttps://github.com/angular/angular/security/advisories/GHSA-45q2-gjvg-7973
https://github.com/eblocha
eblochahttps://github.com/eblocha
on Apr 21, 2026https://github.com/angular/angular/issues/68322#issuecomment-4294224814
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Apr 21, 2026https://github.com/angular/angular/issues/68322#issuecomment-4294224827
#68194https://github.com/angular/angular/pull/68194
https://github.com/SkyZeroZx/hash-errorhttps://github.com/SkyZeroZx/hash-error
atscotthttps://github.com/atscott
angular/angularhttps://github.com/angular/angular
on Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745051734
https://github.com/martyganz
martyganzhttps://github.com/martyganz
on Apr 22, 2026https://github.com/angular/angular/issues/68322#issuecomment-4294224855
alan-agius4https://github.com/alan-agius4
angular/angular-clihttps://github.com/angular/angular-cli
on Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745051793
alan-agius4https://github.com/alan-agius4
on Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745052094
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 Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745056676
alan-agius4https://github.com/alan-agius4
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745057556
alan-agius4https://github.com/alan-agius4
on Apr 22, 2026https://github.com/angular/angular/issues/68322#event-24745938877
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/alan-agius4/angular/commit/9063ee98b0b99623835a2a610b6d5dac3a0a87f9
https://docs.github.com/articles/closing-issues-via-commit-messages
9063ee9https://github.com/alan-agius4/angular/commit/9063ee98b0b99623835a2a610b6d5dac3a0a87f9
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/alan-agius4/angular/commit/b02e707ad7013718d11c3c2bd6c96b297f4ac21e
https://docs.github.com/articles/closing-issues-via-commit-messages
b02e707https://github.com/alan-agius4/angular/commit/b02e707ad7013718d11c3c2bd6c96b297f4ac21e
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/alan-agius4/angular/commit/eadb77019e566cba0ccc34642d2c3daaec62863b
https://docs.github.com/articles/closing-issues-via-commit-messages
eadb770https://github.com/alan-agius4/angular/commit/eadb77019e566cba0ccc34642d2c3daaec62863b
amishnehttps://github.com/amishne
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#68325https://github.com/angular/angular/pull/68325
on Apr 28, 2026https://github.com/angular/angular/issues/68322#event-24927423668
amishnehttps://github.com/amishne
on Apr 28, 2026https://github.com/angular/angular/issues/68322#event-24927424716
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/angular/angular/commit/be1f80a253b8ee27ed7d8de2287d6895c4821909
https://docs.github.com/articles/closing-issues-via-commit-messages
be1f80ahttps://github.com/angular/angular/commit/be1f80a253b8ee27ed7d8de2287d6895c4821909
angular-robothttps://github.com/angular-robot
on Apr 28, 2026https://github.com/angular/angular/issues/68322#event-24927433346
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/angular-robot/angular/commit/2a6b6fafb032b840797625590037bb4f1d8c6261
https://docs.github.com/articles/closing-issues-via-commit-messages
2a6b6fahttps://github.com/angular-robot/angular/commit/2a6b6fafb032b840797625590037bb4f1d8c6261
alan-agius4https://github.com/alan-agius4
on May 4, 2026https://github.com/angular/angular/issues/68322#event-25126564053
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/alan-agius4/angular/commit/95d9e5d14fb3f9d01654a139e12d068f866df7c3
https://docs.github.com/articles/closing-issues-via-commit-messages
95d9e5dhttps://github.com/alan-agius4/angular/commit/95d9e5d14fb3f9d01654a139e12d068f866df7c3
alxhubhttps://github.com/alxhub
on May 6, 2026https://github.com/angular/angular/issues/68322#event-25237409628
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/angular/angular/commit/25e4e07238021a3641f96bb5f5648d74a83f1712
https://docs.github.com/articles/closing-issues-via-commit-messages
25e4e07https://github.com/angular/angular/commit/25e4e07238021a3641f96bb5f5648d74a83f1712
mattrbeckhttps://github.com/mattrbeck
on May 7, 2026https://github.com/angular/angular/issues/68322#event-25282716152
fix(platform-server): ensure origin has a trailing slash when parsing…https://github.com/angular/angular/commit/837a7102172502dd3d92793ec15b2d4e533a573d
https://docs.github.com/articles/closing-issues-via-commit-messages
837a710https://github.com/angular/angular/commit/837a7102172502dd3d92793ec15b2d4e533a573d
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on May 29, 2026https://github.com/angular/angular/issues/68322#issuecomment-4569461372
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on May 29, 2026https://github.com/angular/angular/issues/68322#event-26088470503
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/68322
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/68322
alan-agius4https://github.com/alan-agius4
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%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

Viewport: width=device-width


URLs of crawlers that visited me.