From cb5a6927766738360e58e7cb9674bc9d8ac10ccb Mon Sep 17 00:00:00 2001 From: Nirjhor Nath Date: Thu, 14 Mar 2024 15:39:00 -0400 Subject: [PATCH] fix: add `to` path when syncing url --- packages/react-router/src/RouterProvider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-router/src/RouterProvider.tsx b/packages/react-router/src/RouterProvider.tsx index a8f6f2588ff..c2ffe8b0845 100644 --- a/packages/react-router/src/RouterProvider.tsx +++ b/packages/react-router/src/RouterProvider.tsx @@ -143,6 +143,7 @@ function Transitioner() { }) const nextLocation = router.buildLocation({ + to: router.latestLocation.pathname, search: true, params: true, hash: true,