From 5aae745c04b0791cb850e0e978b79b0e25c6f630 Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Tue, 7 Mar 2023 23:43:24 -0800 Subject: [PATCH] always push state --- src/pages/photogallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/photogallery.tsx b/src/pages/photogallery.tsx index d895799..4806e0a 100644 --- a/src/pages/photogallery.tsx +++ b/src/pages/photogallery.tsx @@ -85,7 +85,7 @@ const GalleryPage = ({ data }: PageProps) => { // do nothing } _setSortKey(newSortKey); - window.history.replaceState( + window.history.pushState( null, "", getGalleryPageUrl({ sortKey: newSortKey, keyword: filterKeyword }, hash)