Skip to content

Remember users tab after page refresh

Release notes

When navigating to the admin >> users >> blocked users or any other tab and click to delete user, after page refresh the page navigates to the active users tab. It would be nice if after the tab refresh the page would stay on the same page it was before, let's say blocked users

Problem to solve

when deleting for example blocked users, you need to delete them one by one at the moment (bulk delete users feature here) and after each deletion, in the blocked user's section you are navigated to the active users section, you might delete the active user by accident if you won't notice that the page has navigated to the active user's page.

User experience goal

The use should not be navigated away from the tab they were working on after the page refresh.

Proposal

Perhaps put the user list into some Vue component instead of haml partial (https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/admin/users/_users.html.haml) and do not perform a hard refresh on the page when user is deleted.

ZD