Skip to content

Commit

Permalink
fix: github pages path
Browse files Browse the repository at this point in the history
  • Loading branch information
easy-death committed Oct 25, 2022
1 parent 27ab2c9 commit 361b527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function saveHistory({query, page, gifs}: HistoryState){
const params = new URLSearchParams();
if (query !== '') params.append('query', query);
if (page !== 1) params.append('page', page.toString());
window.history.pushState({query, page, gifs} as HistoryState, '', "/#" + params.toString());
window.history.pushState({query, page, gifs} as HistoryState, '', window.location.pathname + "#" + params.toString());
}


Expand Down

0 comments on commit 361b527

Please sign in to comment.