Don't change browser history on category filter change
This commit is contained in:
parent
5b9862c19c
commit
537f32ab8b
@ -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}`);
|
||||
})
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user