only rewrite url for tabs if the tab has the class url-rewrite

This commit is contained in:
Dennis Eichhorn 2021-08-06 19:31:52 +02:00
parent 15db183a81
commit 5c4737d46b

View File

@ -98,11 +98,13 @@ export class Tab
jsOMS.addClass(this, 'active');
/* Add selected tab */
window.history.replaceState(null, '',
UriFactory.build(
'{%}#' + (fragmentString === '' ? '' : fragmentString)
)
);
if (jsOMS.hasClass(this.closest('.tabview'), 'url-rewrite')) {
window.history.replaceState(null, '',
UriFactory.build(
'{%}#' + (fragmentString === '' ? '' : fragmentString)
)
);
}
});
}