I want it so when you click a link to a page containing multiple filters, the next page loads, with one of the specific filters clicked. I tried the method of having the filter load when a specific url is showing, but it doesn't seem to execute the code. Thanks in advance!
window.location.href = "https://mare-island-brewing-co-vallejo.webflow.io/news?filter0=Category:%20Events";
document.addEventListener('DOMContentLoaded', ()=>{
document.querySelector('.filter-text-events').active = true;
document.querySelector('.filter-text-events').click();
})