always push state

This commit is contained in:
Chuck Dries 2023-03-07 23:43:24 -08:00
parent 4bc81d9cce
commit 5aae745c04

View File

@ -85,7 +85,7 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
// do nothing
}
_setSortKey(newSortKey);
window.history.replaceState(
window.history.pushState(
null,
"",
getGalleryPageUrl({ sortKey: newSortKey, keyword: filterKeyword }, hash)