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'); jsOMS.addClass(this, 'active');
/* Add selected tab */ /* Add selected tab */
window.history.replaceState(null, '', if (jsOMS.hasClass(this.closest('.tabview'), 'url-rewrite')) {
UriFactory.build( window.history.replaceState(null, '',
'{%}#' + (fragmentString === '' ? '' : fragmentString) UriFactory.build(
) '{%}#' + (fragmentString === '' ? '' : fragmentString)
); )
);
}
}); });
} }