fix(4033): iframe tab id is not valid with escaped href's

This commit is contained in:
REJack 2021-11-24 17:38:54 +01:00
parent 9cc4ce3988
commit 2bbb0f1cab

View file

@ -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) {