prevent router-link scrolling to top when clicked


I have router-links over several pages
When the button is clicked, page scrolls to top.

It doesn't look right when I have transition tag wrapped around to show nice transition animation when router changes then only to scroll to top when page has not even changed visually. I tried putting scrollBehavior on addRouters function, and href="javascript:void(0);" to prevent scroll top, but doesn't work

any solutions?

could you just do it w pure js? the router link can behave strangely w in page links

could you just do it w pure js?

do you mean to avoid using router-link?

Ya, router-link mostly helps with navigation via vue-router...