angular/packages/core
Andrew Scott 46ae034c70 fix(router): Respect custom UrlSerializer handling of query parameters (#64449)
Previously, query parameters passed to `router.createUrlTree` were simply converted to strings. This meant that any custom serialization logic in a custom `UrlSerializer` was not applied. This could lead to inconsistencies between navigations triggered from the URL bar (which are parsed by the serializer) and navigations triggered programmatically.

This change ensures that query parameters are normalized using the provided `UrlSerializer`. The values are serialized and then parsed to ensure they are in the same format as if they had come from a URL. This allows custom serializers to handle complex objects in query parameters consistently.

Fixes https://github.com/angular/angular/issues/47307

PR Close #64449
2025-10-17 17:30:46 +00:00
..
global build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
primitives feat(core): support IntersectionObserver options in viewport triggers (#64130) 2025-10-09 05:32:21 -07:00
rxjs-interop docs: update doc to clear up difference between toObservable/ outputToObservable (#63836) 2025-09-16 15:00:54 +00:00
schematics refactor(migrations): unit test signal migration adjustment (#64393) 2025-10-15 10:38:57 -07:00
src fix(forms): mark field as dirty when value is changed by a bound control (#64483) 2025-10-17 16:02:16 +00:00
test fix(router): Respect custom UrlSerializer handling of query parameters (#64449) 2025-10-17 17:30:46 +00:00
testing refactor(core): Make the zoneless-by-default change a flag flip (#63382) 2025-09-16 18:56:54 +00:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
package.json fix(core): mark zone.js as an optional peer dependency (#61616) 2025-05-22 12:14:06 -07:00
PACKAGE.md
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00
tsconfig-test.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00