zmiana month na m

This commit is contained in:
Mateusz Gruszczyński
2025-08-13 15:19:51 +02:00
parent fe027a3bc7
commit 5188f80948
2 changed files with 3 additions and 5 deletions

View File

@@ -5,9 +5,9 @@ document.addEventListener("DOMContentLoaded", () => {
const month = select.value;
const url = new URL(window.location.href);
if (month) {
url.searchParams.set("month", month);
url.searchParams.set("m", month);
} else {
url.searchParams.delete("month");
url.searchParams.delete("m");
}
window.location.href = url.toString();
});