Title: 404 when SSR encounters slashes in route params · Issue #33044 · angular/angular-cli · GitHub
Open Graph Title: 404 when SSR encounters slashes in route params · Issue #33044 · angular/angular-cli
X Title: 404 when SSR encounters slashes in route params · Issue #33044 · angular/angular-cli
Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description Have a parametrized route: { path: 'user/:name', component: UserProfile } Use server side rendering on the route. Have a router l...
Open Graph Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description Have a parametrized route: { path: 'user/:name', component: UserProfile } Use server side...
X Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description Have a parametrized route: { path: 'user/:name', component: UserProfile } Use ser...
Opengraph URL: https://github.com/angular/angular-cli/issues/33044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"404 when SSR encounters slashes in route params","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-server\n\n### Is this a regression?\n\nNo\n\n### Description\n\n1. Have a parametrized route: \n```js\n{ path: 'user/:name', component: UserProfile }\n```\n2. Use server side rendering on the route.\n3. Have a router link that puts slash in the `:name`:\n```html\n\u003ca [routerLink]=\"['/user', 'Bob / Roberts']\">Go to Bob / Roberts profile\u003c/a>\n```\n4. Follow the link.\n\nNavigation will succeed in client mode and you'll see encoded param in the URL as expected.\nBut if you reload the page / navigate to this URL directly, you'll get 404.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/undsoft/angular-ssr-slash-repro\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI : 21.2.8\nAngular : 21.2.9\nNode.js : 24.14.0\nPackage Manager : pnpm 10.33.0\nOperating System : darwin arm64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build │ 21.2.8 │ ^21.2.7 │\n│ @angular/cli │ 21.2.8 │ ^21.2.7 │\n│ @angular/common │ 21.2.9 │ ^21.2.0 │\n│ @angular/compiler │ 21.2.9 │ ^21.2.0 │\n│ @angular/compiler-cli │ 21.2.9 │ ^21.2.0 │\n│ @angular/core │ 21.2.9 │ ^21.2.0 │\n│ @angular/forms │ 21.2.9 │ ^21.2.0 │\n│ @angular/platform-browser │ 21.2.9 │ ^21.2.0 │\n│ @angular/platform-server │ 21.2.9 │ ^21.2.0 │\n│ @angular/router │ 21.2.9 │ ^21.2.0 │\n│ @angular/ssr │ 21.2.8 │ ^21.2.7 │\n│ rxjs │ 7.8.2 │ ~7.8.0 │\n│ typescript │ 5.9.3 │ ~5.9.2 │\n│ vitest │ 4.1.5 │ ^4.0.8 │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n","author":{"url":"https://github.com/undsoft","@type":"Person","name":"undsoft"},"datePublished":"2026-04-22T18:41:06Z","url":"https://github.com/angular/angular-cli/issues/33044"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39271d36-d652-0907-ad25-32400bde1dc9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8C4:2E3A9:72D59D:A1C973:6AFDC31C |
| html-safe-nonce | 4980093944e154c8d02ddc83fdfd5af140a810d06e00e99b1ef0bc1a817cf8dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEM0OjJFM0E5OjcyRDU5RDpBMUM5NzM6NkFGREMzMUMiLCJ2aXNpdG9yX2lkIjoiNTcwNzM1NjQwMDAyMjgyMjY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d5e35531018da26ac5bfaba224c032728e5ebd636117b55f2bdfb056789b7b6 |
| hovercard-subject-tag | issue:4321527881 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/33044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5243ed7829043891e2b90f2842d6fa53d7def8756b7f205c3fd2ad7a97782bc5/angular/angular-cli/issues/33044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5243ed7829043891e2b90f2842d6fa53d7def8756b7f205c3fd2ad7a97782bc5/angular/angular-cli/issues/33044 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description Have a parametrized route: { path: 'user/:name', component: UserProfile } Use server side... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | undsoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab48c73a2978548773f5f24717ed9e58508befdb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width