angular/packages/router/test
arturovt 8ec0d1eee8 fix(router): skip scroll-to-top on initial navigation when hydrating
When scrollPositionRestoration is enabled and the app hydrates an
SSR-rendered page, RouterScroller was unconditionally scrolling the
viewport to [0, 0] on the first imperative navigation. This discards
any scroll position the user established while the server-rendered
page was loading.

Fix by injecting IS_HYDRATION_DOM_REUSE_ENABLED into RouterScroller
and suppressing the scroll-to-top for the initial navigation only.
Subsequent navigations are unaffected.

Closes #64578
2026-05-19 13:01:53 -07:00
..
directives feat(router): add unmatchedInputBehavior option to componentInputBinding 2026-05-01 16:04:52 -07:00
integration fix(router): restore internal URL on popstate when browserUrl is used 2026-04-20 16:46:25 -07:00
operators fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
utils refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
apply_redirects.spec.ts fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
bootstrap.spec.ts ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
BUILD.bazel ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
computed_state_restoration.spec.ts refactor(router): Permit deferring commit of traversal navigations 2026-03-03 14:09:11 -08:00
config.spec.ts build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
create_router_state.spec.ts fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
create_url_tree.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
default_export_component.ts refactor(router): remove standalone true (#58950) 2024-12-05 16:02:37 -08:00
default_export_routes.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
helpers.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
page_title_strategy_spec.ts ci: reformat files 2025-12-16 14:44:19 -08:00
recognize.spec.ts fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
regression_integration.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
route_injector_cleanup.spec.ts feat(router): add controls for route cleanup 2026-01-05 14:43:56 -05:00
router.spec.ts refactor(router): Store route injector on ActivatedRoute instance 2025-11-20 17:05:10 -05:00
router_devtools.spec.ts feat(devtools): clean up router tree for stable release (#63081) 2025-09-02 20:59:15 -07:00
router_link_active.spec.ts feat(router): Update IsActiveMatchOptions APIs to accept a Partial 2026-01-29 12:10:40 -08:00
router_link_spec.ts test(router): remove provider zoneless from tests 2026-02-02 15:00:18 -08:00
router_navigation_extras.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
router_preloader.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
router_scroller.spec.ts fix(router): skip scroll-to-top on initial navigation when hydrating 2026-05-19 13:01:53 -07:00
router_state.spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
shared.spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
standalone.spec.ts refactor(router): remove deprecated provideRoutes function. 2026-02-24 09:25:13 -08:00
trailing_slash_integration.spec.ts feat(common): Add Location strategies to manage trailing slash on write 2026-01-23 20:09:23 +00:00
tsconfig-test.json refactor(router): Intercept navigate events (unless it's a rollback) 2025-11-06 15:00:08 -08:00
url_serializer.spec.ts fix(router): normalize multiple leading slashes in URL parser 2026-04-14 12:34:03 +03:00
url_tree.spec.ts build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
view_transitions.spec.ts test(router): remove provider zoneless from tests 2026-02-02 15:00:18 -08:00
with_platform_navigation.spec.ts build: update rules_browsers digest to ceb5275 2026-02-19 15:47:47 -08:00