diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 591b2b60c..7925e17c4 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -387,13 +387,13 @@ FW_replaceLink(el) ma = attr.match(new RegExp("^"+FW_root)); // Avoid "Connection lost" @iOS if(ma) { $(el).click(function(e) { - e.preventDefault(); // Open link in window/tab, Forum #39154 if(e.shiftKey || e.ctrlKey || e.metaKey || e.button == 1) return; + e.preventDefault(); FW_leaving = 1; if($(el).attr("target") == "_blank") { - window.open(url, '_blank').focus(); + window.open(attr, '_blank').focus(); } else { location.href = attr; }