Title: resolveRedirectTo breaks urls with several parameters · Issue #33504 · angular/angular-cli · GitHub
Open Graph Title: resolveRedirectTo breaks urls with several parameters · Issue #33504 · angular/angular-cli
X Title: resolveRedirectTo breaks urls with several parameters · Issue #33504 · 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 19 Description paths like '/:country/:lang/some/urls/' when redirected to 'data' are r...
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 19 Description paths like '/:country/:lang/som...
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 19 Description paths like '/:country/:lang...
Opengraph URL: https://github.com/angular/angular-cli/issues/33504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"resolveRedirectTo breaks urls with several parameters","articleBody":"### Command\n\nserve\n\n### Is this a regression?\n\n- [x] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n19\n\n### Description\n\npaths like '/:country/:lang/some/urls/' when redirected to 'data' are redirected to /en/:lang/some/urls/data\n\n### Minimal Reproduction\n\nin function resolveRedirectTo(routePath, redirectTo){} (packages/angular/ssr/src/routes/ng-routes.ts)\nthe '/:country/:lang/some/urls/' is replaced with '/*/:lang/some/urls/'\n\nwe heve routes like this\n\n```\nexport const routes: Routes = [\n {\n path: ':country/:lang',\n pathMatch: 'prefix',\n loadComponent: () => //load some component,\n children: [ \n {\n path: 'some',\n loadComponent: () => //load some component,\n children: [\n {\n path: 'url', \n loadComponent: () =>//load some component, \n children: [\n {\n path: '',\n redirectTo: 'data',\n pathMatch: 'full',\n },\n {\n path: 'data',\n loadComponent: () =>//load some component, \n \n } \n ],\n } \n ],\n },\n ],\n },\n];\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\nAngular CLI : 21.2.17\nAngular : 21.2.17\nNode.js : 22.13.1\nPackage Manager : npm 10.9.2\nOperating System : win32 x64\n```\n\n### Anything else relevant?\n\nlooks like related to https://github.com/angular/angular-cli/issues/33154\nhttps://github.com/angular/angular-cli/pull/33159","author":{"url":"https://github.com/ipekakuan","@type":"Person","name":"ipekakuan"},"datePublished":"2026-07-02T08:05:53Z","url":"https://github.com/angular/angular-cli/issues/33504"}
| 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:b6e281eb-eb27-5783-40e5-a9d39ad9c8df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0D2:21838:289027:385715:6AFDDDA6 |
| html-safe-nonce | e1bf748be833ea1d9b970cf90bd2c8e11fbeb6651d5b3137a2767df5222a38e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEQyOjIxODM4OjI4OTAyNzozODU3MTU6NkFGREREQTYiLCJ2aXNpdG9yX2lkIjoiOTEwODM4MDgyMTk0NDY1NTI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bcb2eee837213184230453ffcce112531f2e71d8e5ca0a56a1f3dbe789f85ed4 |
| hovercard-subject-tag | issue:4792493924 |
| 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/33504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ed239ddc5a2caf1757a3c0388e9f101edbd3885a6cc531ce8361573c616f9fb/angular/angular-cli/issues/33504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ed239ddc5a2caf1757a3c0388e9f101edbd3885a6cc531ce8361573c616f9fb/angular/angular-cli/issues/33504 |
| 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 19 Description paths like '/:country/:lang/som... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ipekakuan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 90d7884679efe0f89b35e0eef84213a75179f38d11a62f2a0af551bbe5110799 |
| 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 | 89e3d4b2f59ef440fc496c853aee1d9a06a137d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width