Title: SSR url normalization causes 302 redirects · Issue #31881 · angular/angular-cli · GitHub
Open Graph Title: SSR url normalization causes 302 redirects · Issue #31881 · angular/angular-cli
X Title: SSR url normalization causes 302 redirects · Issue #31881 · 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 With the introduction of #31497, we noticed higher CPU usage a...
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 With the introduction ...
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 With the introduction ...
Opengraph URL: https://github.com/angular/angular-cli/issues/31881
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSR url normalization causes 302 redirects","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\nWith the introduction of #31497, we noticed higher CPU usage and looked at the logs. We noticed a lot of 302 redirects happening now that will cause 2 requests to be served instead of one. \nAngular SSR is already slow, taking more than a second to answer requests. With the introduction of the redirects, the ssr server now has to compute two requests and end user latency doubles. \n\nIt looks like the internal url normalization of angular will issue redirects, where they're not necessary.\n\n\n### Minimal Reproduction\n```\nThis url\n/?email=xyz%40xyz.com\nWill redirect to\n/?email=xyz@xyz\n```\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\nAngular CLI: 20.3.10\nNode: 24.11.0\nPackage Manager: npm 11.6.1\nOS: linux x64\n \n\nAngular: 20.3.12\n... animations, common, compiler, compiler-cli, core, forms\n... language-service, platform-browser, platform-browser-dynamic\n... platform-server, router\n\nPackage Version\n-----------------------------------------\n@angular-devkit/architect 0.2003.10\n@angular-devkit/core 20.3.10\n@angular-devkit/schematics 20.3.10\n@angular/build 20.3.10\n@angular/cdk 20.2.13\n@angular/cli 20.3.10\n@angular/material 20.2.13\n@angular/material-luxon-adapter 20.2.13\n@angular/ssr 20.3.10\n@angular/youtube-player 20.2.13\n@schematics/angular 20.3.10\ntypescript 5.9.3\nzone.js 0.15.1\n```\n\n### Anything else relevant?\n\n_No response_","author":{"url":"https://github.com/MarcoGlauser","@type":"Person","name":"MarcoGlauser"},"datePublished":"2025-11-20T03:52:46Z","url":"https://github.com/angular/angular-cli/issues/31881"}
| 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:12ac7896-2d6c-cdb8-b714-d3662554cca5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0E0:D0575:2241FC:31AFA8:6AFDD1BC |
| html-safe-nonce | 4d0af997245693081b1300fb5de9c7dc5a2993915d7b4feac2ebf51814a36a88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUwOkQwNTc1OjIyNDFGQzozMUFGQTg6NkFGREQxQkMiLCJ2aXNpdG9yX2lkIjoiMzk0NjI2ODk3OTAyNjA1NTYxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b720feb044e80da54e71484e0e956dcd9f0a3cf0b57ba94551f1da2199f87df7 |
| hovercard-subject-tag | issue:3645333723 |
| 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/31881/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae50d1f8f78a3b0c7e32b9ae0240d197fe520424dbefcc43a3527c8c8ba3b1c8/angular/angular-cli/issues/31881 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae50d1f8f78a3b0c7e32b9ae0240d197fe520424dbefcc43a3527c8c8ba3b1c8/angular/angular-cli/issues/31881 |
| 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 With the introduction ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MarcoGlauser |
| 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