wow!
can you try this:
<button type="button" class="rca-link" data-slug="dining-tables">Dining tables</button>
dont use <button> elements but instead use normal <divs>
or anything else except <button>
really not sure if that may be it. probably that wont make a difference
another thing is:
if(!isMobile && anchor){
// DESKTOP ā filtro Lay live
clickLay(anchor);
history.replaceState(null, '', targetUrl);
} else {
// MOBILE ā ricarica pagina con hash
window.location.href = targetUrl;
}
here, could you code it so it only replaces the hash:
window.location.hash = 'section1';
instead of using
window.location.href =
because the window.location.href =
line might reload the site
or try the way you do it in this one if statement:
history.replaceState(null, '', targetUrl);
instead of
window.location.href =