Commit 65cfeef
committed
fix(web): serialize location.search to prevent [object Object] in history
TanStack Router's useLocation() returns location.search as a parsed
object, not a string. Concatenating it with strings caused JavaScript
to call toString(), producing "[object Object]" in URLs and history.
Use serializeSearch() utility (already used in NavigationTracker and
use-user-interactions) to properly convert the search object to a
query string format.1 parent 4932de8 commit 65cfeef
File tree
1 file changed
+3
-1
lines changed- apps/web/src/hooks
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments