In the menu, category items have a # # lattice and, because of this, when you click a person, flips up the pages. Found this to be removed by adding onclick="return false" :
< a href="#" onclick="return false" > link < /a> Tell me how to fix it without adding an onclick link to each link, but setting a rule once? For example, in js for links inside a class such and such. Or somehow in a different way.
document.querySelectorAll("a[href='#']").forEach(el => { el.addEventListener("click", () => 0); })- Artem Gorlachev