forked from deblan/side_menu
fix issue with links
This commit is contained in:
parent
39aede4a73
commit
b5ce8b92e1
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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' => [],
|
||||
|
|
Loading…
Reference in a new issue