From b8fecb2e777aa220da08a4018df490d29efd694f Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 21 Oct 2025 11:25:03 +0800 Subject: [PATCH] * [bug #66058] fix click link starts with # not work in firefox. --- www/js/zui3/zin.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js index 373051c2ec..920ac8eb88 100644 --- a/www/js/zui3/zin.js +++ b/www/js/zui3/zin.js @@ -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)