Skip to content

Commit 3359337

Browse files
committed
update router push to replace in listing pages
1 parent 74f351a commit 3359337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/[locale]/(user)/components/ListingComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const useUrlParams = (
179179
} else {
180180
currentUrl.searchParams.delete('order');
181181
}
182-
router.push(currentUrl.toString());
182+
router.replace(currentUrl.toString());
183183
}, [queryParams, setVariables, router]);
184184
};
185185

0 commit comments

Comments
 (0)