* [bug #66058] fix click link starts with # not work in firefox.

This commit is contained in:
sunhao
2025-10-21 11:25:08 +08:00
parent 2ced7c2ec9
commit b8fecb2e77
+9 -1
View File
@@ -1810,7 +1810,15 @@
delete options.loadId;
}
if(url && ((/^(https?|javascript):/.test(url) && !options.app) || url.startsWith('#'))) return;
if(url)
{
if(/^(https?|javascript):/.test(url) && !options.app) return;
if(url[0] === '#')
{
if(/firefox/i.test(navigator.userAgent)) e.preventDefault();
return;
}
}
if(!url && $link.is('a') && !options.back && !options.load) return;
if($modal.length)