Repository navigation
Labels
area: @angular/ssrfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Description
Which @angular/* package(s) are the source of the bug?
@angular/ssr
Is this a regression?
Yes
Description
Angular SSR seems not to accept matrix params in URLs.
Reproduction: App with SSR; then add Matrix params to the URL through the use of angulars routerLink like <a [routerLink]="['.', {foo:'bar'}]">...</a> - when clicked in running angular app it will work as expected since it runs only in the browser.
when trying to request this new url with matrix params from the running ssr server it will fail because of those matrix params.
/home --> works
/home;foo=bar --> not working
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-ssr-matrix-params-denial
Please provide the exception or error you saw
`404 - Not Found`
-- if there is a redirect configured with `**` in the angular `Routes` it would return a 302 to given route.
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 20.3.5
Node: 20.19.1
Package Manager: npm 10.8.2
OS: linux x64
Angular: 20.3.4
... common, compiler, compiler-cli, core, platform-browser
... platform-server, router
Package Version
------------------------------------
@angular-devkit/architect 0.2003.5
@angular-devkit/core 20.3.5
@angular-devkit/schematics 20.3.5
@angular/build 20.3.5
@angular/cli 20.3.5
@angular/ssr 20.3.5
@schematics/angular 20.3.5
rxjs 7.8.2
typescript 5.9.3
Anything else?
When changing the route definition from using path to matcher function which does essentially the same as the path it works as expected.
{
{
// path: 'home',
matcher: ([s0]) => (s0?.path === 'home' ? { consumed: [s0] } : null),
loadChildren: () => import('./routes/home/home-routes')
}
}Metadata
Metadata
Assignees
Labels
area: @angular/ssrfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Activity
alan-agius4 commentedon Oct 14, 2025
Hi @mumenthalers, whist I was able to reproduce on stackblitz I wasn't able to do so locally and hence it seems that this is an issue with their server configuration.
mumenthalers commentedon Oct 14, 2025
@alan-agius4 is it possible you tested with my workaround enabled?
I only used stackblitz to reproduce it with minimal setup but of course experienced it first locally.
I just downloaded the project from stackblitz, run
npm cithennpm startand then executed your curl command and got the error.Could you please look into it again?
Locally I'm running it with:
alan-agius4 commentedon Oct 14, 2025
@mumenthalers, I did un-comment the matcher
mumenthalers commentedon Oct 14, 2025
@alan-agius4 but it does not work when using the
path. What am I missing?alan-agius4 commentedon Oct 14, 2025
Oh, I know see what you mean.
fix(@angular/ssr): correctly handle routes with matrix parameters
fix(@angular/ssr): correctly handle routes with matrix parameters
fix(@angular/ssr): correctly handle routes with matrix parameters
angular-automatic-lock-bot commentedon Nov 16, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.