mirror of https://github.com/ColorlibHQ/AdminLTE
fix(4033): iframe tab id is not valid with escaped href's
parent
9cc4ce3988
commit
2bbb0f1cab
|
@ -143,7 +143,7 @@ class IFrame {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const uniqueName = link.replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
|
const uniqueName = unescape(link).replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
|
||||||
const navId = `tab-${uniqueName}`
|
const navId = `tab-${uniqueName}`
|
||||||
|
|
||||||
if (!this._config.allowDuplicates && $(`#${navId}`).length > 0) {
|
if (!this._config.allowDuplicates && $(`#${navId}`).length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue