diff options
Diffstat (limited to 'src/controllers/TreeController.php')
-rw-r--r-- | src/controllers/TreeController.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/controllers/TreeController.php b/src/controllers/TreeController.php index fbe4d0c2..cca10b87 100644 --- a/src/controllers/TreeController.php +++ b/src/controllers/TreeController.php @@ -178,9 +178,15 @@ class TreeController extends BaseController 'openicon' => Decorator::get_sanitized_value($icon, $rec), 'tooltip' => Decorator::get_sanitized_value($attrs['toolTip'], $rec), 'a_attr' => ['href' => $href], + //'url'=>strtolower(), 'children' => false, ]; + $url = Decorator::get_sanitized_value($attrs['branch'], $rec); + $urlparts=parse_url('https://dummy.domain'.$tree['a_attr']['href']); + $path_arr=explode('/',$urlparts['path']??''); + $tree['url']=containerInstance()->getDestinationWithLastTab(array_pop($path_arr)); + $url = \str_replace('/src/views/', '/', $url); @@ -195,7 +201,7 @@ class TreeController extends BaseController $parent[] = $tree; } - } else { + } else { $parent = ['children' => false]; } |