From 4e4d670f2382c18f6a91e6bfb58a8f80cebd1f0f Mon Sep 17 00:00:00 2001 From: Lukas Scharmer Date: Tue, 21 Jun 2022 16:28:15 +0200 Subject: [PATCH] Fix target _blank for dashboard items --- Services/Object/classes/class.ilObjectListGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Object/classes/class.ilObjectListGUI.php b/Services/Object/classes/class.ilObjectListGUI.php index 6c20eec4237f..8d65f2c19657 100644 --- a/Services/Object/classes/class.ilObjectListGUI.php +++ b/Services/Object/classes/class.ilObjectListGUI.php @@ -3792,7 +3792,7 @@ public function getAsListItem( if ($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. + $new_viewport = !in_array($this->getDefaultCommand()['frame'], ['', '_top', '_self', '_parent'], true); // Cannot use $def_command['frame']. $this->default_command has been edited. $link = $this->ui->factory() ->link() ->standard($this->getTitle(), $def_command['link'])