diff --git a/og_ui/src/Controller/OgUiController.php b/og_ui/src/Controller/OgUiController.php index e61f6021f..c89db34b3 100644 --- a/og_ui/src/Controller/OgUiController.php +++ b/og_ui/src/Controller/OgUiController.php @@ -72,6 +72,7 @@ public static function create(ContainerInterface $container) { * The overview as a render array. */ public function rolesPermissionsOverviewPage($type) { + $route = $type === 'roles' ? 'entity.og_role.collection' : 'og_ui.permissions_overview'; $action = $type === 'roles' ? t('Edit roles') : t('Edit permissions'); $header = [t('Group type'), t('Operations')]; $rows = []; @@ -86,7 +87,7 @@ public function rolesPermissionsOverviewPage($type) { 'data' => $definition->getLabel() . ' - ' . $bundle_info[$bundle]['label'], ], [ - 'data' => Link::createFromRoute($action, 'og_ui.' . $type . '_overview', [ + 'data' => Link::createFromRoute($action, $route, [ 'entity_type_id' => $entity_type, 'bundle_id' => $bundle, ]),