From 938af7c72091aea768c0b30ea8e83b7aa2353852 Mon Sep 17 00:00:00 2001 From: Phuoc Anh Kha Le <76896393+anhkha2003@users.noreply.github.com> Date: Thu, 30 May 2024 18:22:20 -0500 Subject: [PATCH] Fix changing tab with page param bug (#114) --- templates/contest/list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/contest/list.html b/templates/contest/list.html index e3c1702..10e12b5 100644 --- a/templates/contest/list.html +++ b/templates/contest/list.html @@ -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; }