diff --git a/Services/Object/classes/class.ilObjectListGUI.php b/Services/Object/classes/class.ilObjectListGUI.php index 2a9ab543d123..f48a1bd81ff5 100644 --- a/Services/Object/classes/class.ilObjectListGUI.php +++ b/Services/Object/classes/class.ilObjectListGUI.php @@ -3793,7 +3793,13 @@ public function getAsListItem( if ($def_command['link']) { - $list_item = $ui->factory()->item()->standard($this->ui->factory()->link()->standard($this->getTitle(), $def_command['link'])); + $def_command['link'] = $this->modifySAHSlaunch($def_command['link'], $def_command['frame']); + $new_viewport = (bool) $this->getDefaultCommand()['frame']; // Cannot use $def_command['frame']. $this->default_command has been edited. + $link = $this->ui->factory() + ->link() + ->standard($this->getTitle(), $def_command['link']) + ->withOpenInNewViewport($new_viewport); + $list_item = $ui->factory()->item()->standard($link); } else { $list_item = $ui->factory()->item()->standard($this->getTitle()); }