mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
01_FHEMWEB.pm: open commandref.html in new tab (Forum #39854)
git-svn-id: https://svn.fhem.de/fhem/trunk@12007 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
55d61bed27
commit
bab453c00f
@ -1470,8 +1470,9 @@ FW_roomOverview($)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Force external browser if FHEMWEB is installed as an offline app.
|
# Force external browser if FHEMWEB is installed as an offline app.
|
||||||
my $target = ''; # Forum 33066
|
my $target = ''; # Forum 33066, 39854
|
||||||
$target = 'target="_blank"' if($l2 =~ s/^$FW_ME\/\+/$FW_ME\//);
|
$target = 'target="_blank"' if($l2 =~ s/^$FW_ME\/\+/$FW_ME\//);
|
||||||
|
$target = 'target="_blank"' if($l2 =~ m/commandref|fhem.de.fhem.html/);
|
||||||
if($l2 =~ m/.html$/ || $l2 =~ m/^http/ || length($target)) {
|
if($l2 =~ m/.html$/ || $l2 =~ m/^http/ || length($target)) {
|
||||||
FW_pO "<td><div><a href=\"$l2\" $target >$icon$l1</a></div></td>";
|
FW_pO "<td><div><a href=\"$l2\" $target >$icon$l1</a></div></td>";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user