This commit is contained in:
parent
ad04de1273
commit
b297690b3f
|
@ -344,7 +344,8 @@ var gadjo_js = gadjo_js || {};
|
|||
|
||||
// Adjust URL to mention selected tab
|
||||
const url = new URL(document.location);
|
||||
url.hash = '#open:' + btn.getAttribute('aria-controls').substring(6);
|
||||
const prefix = btn.getAttribute('aria-controls').split('-')[0];
|
||||
url.hash = '#open:' + btn.getAttribute('aria-controls').substring(prefix.length + 1);
|
||||
history.replaceState(null, '', url);
|
||||
|
||||
// Trigger gadjo:tab-selected event on panel
|
||||
|
|
Loading…
Reference in New Issue