mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 05:12:19 -05:00
fix hashtag disappearing in u query params
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user