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

pull/4063/head
REJack 2021-11-24 17:38:54 +01:00
parent 9cc4ce3988
commit 2bbb0f1cab
1 changed files with 1 additions and 1 deletions

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