mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 22:42:38 -05:00
fix hashtag disappearing in u query params
This commit is contained in:
parent
2f58b261bc
commit
70bbb05bf2
|
|
@ -37,7 +37,13 @@ const UserSearchPage = ({ users }: Props) => {
|
|||
if (debouncedFilter.length < 3) {
|
||||
router.push(`/u`, undefined, { shallow: true });
|
||||
} else {
|
||||
router.push(`/u?filter=${debouncedFilter}`, undefined, { shallow: true });
|
||||
router.push(
|
||||
`/u?filter=${encodeURIComponent(debouncedFilter)}`,
|
||||
undefined,
|
||||
{
|
||||
shallow: true,
|
||||
}
|
||||
);
|
||||
}
|
||||
}, [debouncedFilter]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user