diff --git a/left.cgi b/left.cgi index 20b42cd..7fa98ac 100755 --- a/left.cgi +++ b/left.cgi @@ -174,6 +174,11 @@ foreach my $item (@$items) { my $it = $item->{'target'} || ''; my $t = $it eq 'new' ? '_blank' : $it eq 'window' ? '_top' : 'right'; + my $link = add_webprefix($item->{'link'}); + if ($item->{'link'} =~ /^(https?):\/\//) { + $t = '_blank'; + $link = $item->{'link'}; + } if ($item->{'icon'}) { my $icon = add_webprefix($item->{'icon'}); print "