Skip to content

Commit 7d1971c

Browse files
authored
IBX-8079: Inconsistent redirect point after role assignment action (#2118)
1 parent 81d2231 commit 7d1971c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bundle/Controller/RoleAssignmentController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function createAction(Request $request, Role $role): Response
132132

133133
return new RedirectResponse($this->generateUrl('ezplatform.role.view', [
134134
'roleId' => $role->id,
135+
'_fragment' => 'users-and-groups',
135136
]));
136137
});
137138

@@ -220,6 +221,7 @@ public function bulkDeleteAction(Request $request, Role $role): Response
220221

221222
return new RedirectResponse($this->generateUrl('ezplatform.role.view', [
222223
'roleId' => $role->id,
224+
'_fragment' => 'users-and-groups',
223225
]));
224226
});
225227

src/lib/Menu/Admin/Role/RoleAssignmentCreateRightSidebarBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function createStructure(array $options): ItemInterface
6666
'route' => 'ezplatform.role.view',
6767
'routeParameters' => [
6868
'roleId' => $role->id,
69+
'_fragment' => 'users-and-groups',
6970
],
7071
'extras' => ['icon' => 'circle-close'],
7172
]

0 commit comments

Comments
 (0)