From 2bbb0f1cab1401f1194f1d55a11a30ade8b720f0 Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 24 Nov 2021 17:38:54 +0100 Subject: [PATCH] fix(4033): iframe tab id is not valid with escaped href's --- build/js/IFrame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/js/IFrame.js b/build/js/IFrame.js index eef13f10a..09e6662c1 100644 --- a/build/js/IFrame.js +++ b/build/js/IFrame.js @@ -143,7 +143,7 @@ class IFrame { return } - const uniqueName = link.replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '') + const uniqueName = unescape(link).replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '') const navId = `tab-${uniqueName}` if (!this._config.allowDuplicates && $(`#${navId}`).length > 0) {