Skip to content

Commit

Permalink
Fix changing tab with page param bug (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhkha2003 committed May 30, 2024
1 parent 10e5079 commit 938af7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/contest/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
const url = new URL(window.location);
const searchParams = new URLSearchParams(url.search);
searchParams.set('tab', newTab);
searchParams.delete('page');
url.search = searchParams.toString();
return url.href;
}
Expand Down

0 comments on commit 938af7c

Please sign in to comment.