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 // do nothing
} }
_setSortKey(newSortKey); _setSortKey(newSortKey);
window.history.replaceState( window.history.pushState(
null, null,
"", "",
getGalleryPageUrl({ sortKey: newSortKey, keyword: filterKeyword }, hash) getGalleryPageUrl({ sortKey: newSortKey, keyword: filterKeyword }, hash)