You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Administration: clicking a menu item scrolls the page to the top, losing the place in the admin menu #2108
On the Administration page, each item in the left-hand menu (e.g. Access Management → Teams, then Permissions) is its own route under /admin/.... Clicking an item scrolls the whole page back to the top. The menu column scrolls with the page, so on a long admin page you lose where you were in the menu after every click.
This comes from the router's scrollBehavior, which returns { y: 0 } for every navigation in 5.2.1 (src/router/index.js). On main, #2010 restores the position on back-navigation, and navigation within /dependencyGraph is exempt, but going forward between admin items still scrolls to the top.
Steps to Reproduce
Log in as an administrator and open Administration.
Expand Access Management and scroll down far enough that the top of the page is out of view (a short browser window makes this easy).
Click Teams, then Permissions.
The page jumps to the top on each click, and the menu position is lost.
Expected Behavior
The admin menu stays where it is when you switch between admin items. Two possible fixes:
skip the scroll when both routes are under /admin, the same way /dependencyGraph is already exempt in scrollBehavior;
make the admin menu column sticky or scroll on its own, so it stays visible however long the page is.
Activity