diff --git a/lib/Controller/NavController.php b/lib/Controller/NavController.php index 3b807a4..ec0cc7b 100644 --- a/lib/Controller/NavController.php +++ b/lib/Controller/NavController.php @@ -153,7 +153,7 @@ class NavController extends Controller $items[$category]['apps'][$app['id']] = [ 'name' => $app['name'], - 'href' => $this->router->linkTo($app['id'], ''), + 'href' => $app['href'], 'icon' => $app['previewAsIcon'] ? $app['preview'] : null, ]; } diff --git a/lib/Service/AppRepository.php b/lib/Service/AppRepository.php index d2dd024..e893a48 100644 --- a/lib/Service/AppRepository.php +++ b/lib/Service/AppRepository.php @@ -44,6 +44,7 @@ class AppRepository if (isset($navigation[$id])) { $app['name'] = $this->l10nFactory->get($app['id'])->t($app['name']); + $app['href'] = $navigation[$id]['href']; $visibleApps[$id] = $app; } @@ -54,6 +55,7 @@ class AppRepository $visibleApps[$app['id']] = [ 'id' => $app['id'], 'name' => $this->l10nFactory->get($app['id'])->t($app['name']), + 'href' => $app['href'], 'preview' => $app['icon'], 'previewAsIcon' => true, 'category' => [ @@ -64,6 +66,7 @@ class AppRepository $visibleApps[$app['id']] = [ 'id' => $app['id'], 'name' => $this->l10nFactory->get($app['id'])->t($app['name']), + 'href' => $app['href'], 'preview' => $app['icon'], 'previewAsIcon' => true, 'category' => [],