Don't change browser history on category filter change
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 31s

This commit is contained in:
sto 2025-07-16 10:43:08 +02:00
parent 5b9862c19c
commit 537f32ab8b
2 changed files with 2 additions and 2 deletions

View File

@ -15,5 +15,5 @@
if (option.value == selectedCategory) option.selected = true;
});
categorySelectEl.addEventListener('change', (e) => {
window.location.href = `/public/#{@contest.slug}?category=${e.target.value}`
window.location.replace(`/public/#{@contest.slug}?category=${e.target.value}`);
})

View File

@ -61,7 +61,7 @@ javascript:
if (option.value == selectedCategory) option.selected = true;
});
categorySelectEl.addEventListener('change', (e) => {
window.location.href = `#{contest_path(@contest)}?category=${e.target.value}`
window.location.replace(`#{contest_path(@contest)}?category=${e.target.value}`);
})
.d-flex.flex-column style="overflow-y: auto"
table.table.table-striped.table-hover