diff --git a/Services/Object/classes/class.ilObjectListGUI.php b/Services/Object/classes/class.ilObjectListGUI.php index b33c36757950..6c20eec4237f 100644 --- a/Services/Object/classes/class.ilObjectListGUI.php +++ b/Services/Object/classes/class.ilObjectListGUI.php @@ -3791,7 +3791,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()); }