Title: SSR causes 302 redirects to normalized URL · Issue #33053 · angular/angular-cli · GitHub
Open Graph Title: SSR causes 302 redirects to normalized URL · Issue #33053 · angular/angular-cli
X Title: SSR causes 302 redirects to normalized URL · Issue #33053 · angular/angular-cli
Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description Previously someone pointed out that SSR causes lots of 302 red...
Open Graph Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description Previously someone poi...
X Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description Previously someone poi...
Opengraph URL: https://github.com/angular/angular-cli/issues/33053
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSR causes 302 redirects to normalized URL","articleBody":"### Command\n\nserve\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\nPreviously someone pointed out that SSR causes lots of 302 redirects (https://github.com/angular/angular-cli/issues/31881).\nThe fix landed in https://github.com/angular/angular-cli/pull/31883 but we are still facing the similar issue for other URL patterns.\nI expect that Angular server returns 200 OK and then URL normalization happens solely on the client side.\n\n- `/?empty` redirects to `/?empty=`\n- `/?scope=email+profile` redirects to `/?scope=email%20profile`\n- `/?bbb=1&aaa=2&bbb=3` redirects to `/?bbb=1&bbb=3&aaa=2`\n- `//foo` redirects to `/foo`\n\n### Minimal Reproduction\n\n`ng serve` and access to URLs above\n\n```app.routes.server.ts\nexport const serverRoutes: ServerRoute[] = [\n {\n path: '**',\n renderMode: RenderMode.Server,\n },\n];\n```\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\nAngular CLI : 21.2.8\nAngular : 21.2.10\nNode.js : 24.15.0\nPackage Manager : pnpm 10.26.1\nOperating System : darwin arm64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build │ 21.2.8 │ ^21.2.8 │\n│ @angular/cdk │ 21.2.8 │ ^21.2.8 │\n│ @angular/cli │ 21.2.8 │ ^21.2.8 │\n│ @angular/common │ 21.2.10 │ ^21.2.10 │\n│ @angular/compiler │ 21.2.10 │ ^21.2.10 │\n│ @angular/compiler-cli │ 21.2.10 │ ^21.2.10 │\n│ @angular/core │ 21.2.10 │ ^21.2.10 │\n│ @angular/forms │ 21.2.10 │ ^21.2.10 │\n│ @angular/material │ 21.2.8 │ ^21.2.8 │\n│ @angular/platform-browser │ 21.2.10 │ ^21.2.10 │\n│ @angular/platform-server │ 21.2.10 │ ^21.2.10 │\n│ @angular/router │ 21.2.10 │ ^21.2.10 │\n│ @angular/ssr │ 21.2.8 │ ^21.2.8 │\n│ rxjs │ 7.8.2 │ ^7.8.2 │\n│ typescript │ 5.9.3 │ ^5.9.3 │\n│ vitest │ 4.1.4 │ ^4.1.4 │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else relevant?\n\n_No response_","author":{"url":"https://github.com/kon72","@type":"Person","name":"kon72"},"datePublished":"2026-04-25T12:30:05Z","url":"https://github.com/angular/angular-cli/issues/33053"}
| 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:56c6f582-67ae-6318-f2e1-302187194795 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B40:3B5FE:140A74:1D1515:6AFDCE3F |
| html-safe-nonce | 86b3f27be0fd970898ccb3172eb1d498c7b7582e76f381725b0926a7209cadb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjQwOjNCNUZFOjE0MEE3NDoxRDE1MTU6NkFGRENFM0YiLCJ2aXNpdG9yX2lkIjoiMTAwMDI5NTY0NzM1NTQ1NzA4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 68ae9cb23cd97d6bef031c463e1ce85035e014360c64d4da79af4510f4ec8eae |
| hovercard-subject-tag | issue:4328086277 |
| 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/33053/issue_layout |
| twitter:image | https://opengraph.githubassets.com/886273df0b4ae1c645d907df9d285c26b4435968be17f94bcb2e80b7fcfcdef5/angular/angular-cli/issues/33053 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/886273df0b4ae1c645d907df9d285c26b4435968be17f94bcb2e80b7fcfcdef5/angular/angular-cli/issues/33053 |
| og:image:alt | Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description Previously someone poi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kon72 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 |
| 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 | 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width