Skip to content

A platform for community discussion. Free, open, simple.

UX: update groups route on admin users page (#33738)

Kris0e1fa31bf946
diff --git a/app/assets/javascripts/admin/addon/templates/users.gjs b/app/assets/javascripts/admin/addon/templates/users.gjs
index 36c590f0626..4565b867e43 100644
--- a/app/assets/javascripts/admin/addon/templates/users.gjs
+++ b/app/assets/javascripts/admin/addon/templates/users.gjs
@@ -82,7 +82,7 @@ export default RouteTemplate(
class="admin-users-tabs__staged"
/>
<NavItem
- @route="groups"
+ @route="adminGroups.index"
@label="groups.index.title"
class="admin-users-tabs__groups"
/>
diff --git a/spec/system/admin_users_list_spec.rb b/spec/system/admin_users_list_spec.rb
index ec4cde07930..6301075f6c6 100644
--- a/spec/system/admin_users_list_spec.rb
+++ b/spec/system/admin_users_list_spec.rb
@@ -214,7 +214,7 @@ describe "Admin Users Page", type: :system do
it "redirects to groups page" do
admin_users_page.visit
admin_users_page.click_tab("groups")
- expect(page).to have_current_path("/g")
+ expect(page).to have_current_path("/admin/groups")
end
it "redirect to invites page" do