diff --git a/apps/meteor/client/providers/RouterProvider.tsx b/apps/meteor/client/providers/RouterProvider.tsx index 590c5f20da57..1fab7713a5b2 100644 --- a/apps/meteor/client/providers/RouterProvider.tsx +++ b/apps/meteor/client/providers/RouterProvider.tsx @@ -46,7 +46,7 @@ const subscribeToRouteChange = (onRouteChange: () => void): (() => void) => { }; }; -const getLocationPathname = () => FlowRouter.current().path as LocationPathname; +const getLocationPathname = () => FlowRouter.current().path.replace(/\?.*/, '') as LocationPathname; const getLocationSearch = () => location.search as LocationSearch;