diff --git a/fhem/contrib/InfoPanel/55_InfoPanel.pm b/fhem/contrib/InfoPanel/55_InfoPanel.pm index 0fe454e8f..ab31c9490 100644 --- a/fhem/contrib/InfoPanel/55_InfoPanel.pm +++ b/fhem/contrib/InfoPanel/55_InfoPanel.pm @@ -185,11 +185,16 @@ sub btIP_readLayout($) { ##### Items sub btIP_itemArea { - my ($id,$x1,$y1,$x2,$y2,$target,%params)= @_; + my ($id,$x1,$y1,$x2,$y2,$link,%params)= @_; $id = ($id eq '-') ? createUniqueId() : $id; my $width = $x2 - $x1; my $height = $y2 - $y1; - my $output = "\n"; + + my $target = 'secret'; + $target = '_top' if $link =~ s/^-//; + $target = '_blank' if $link =~ s/^\+//; + + my $output = "\n"; $output .= "\n"; $output .= "\n"; return $output;