Skip to content

Commit

Permalink
fix(core): include search params when parsing url in workspace router
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Nov 3, 2023
1 parent cc1ba3d commit c03a515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function useRouterFromWorkspaceHistory(
routerBasePath === '/' ? true : routerBasePathRegex.test(pathname)
return {
subscribe: (onStoreChange: () => void) => history.listen(onStoreChange),
getSnapshot: () => history.location.pathname,
getSnapshot: () => history.location.pathname + history.location.search ?? '',
// Always return null for the server snapshot, as we can't know how to resolve intents until after authentication is done, which is browser-only
getServerSnapshot: () => null,
selector: (pathname: string | null) =>
Expand Down

0 comments on commit c03a515

Please sign in to comment.