From e3a43e7ac512de63dcc06002efcfa11b84c54227 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Wed, 20 Nov 2024 16:24:43 -0500 Subject: [PATCH] Fix External Website popup --- emhttp/plugins/dynamix/include/DefaultPageLayout.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index 5357398dd..755d268a1 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -1130,9 +1130,10 @@ function isValidURL(url) { } $('body').on("click","a", function(e) { - href = $(this).attr("href").trim(); - target = $(this).attr("target"); + var href = $(this).attr("href"); + var target = $(this).attr("target"); if ( href ) { + href = href.trim(); if ( href.match('https?://[^\.]*.(my)?unraid.net/') || href.indexOf("https://unraid.net/") == 0 || href == "https://unraid.net" || href.indexOf("http://lime-technology.com") == 0) { return; }