diff --git a/UI/Component/Tab.js b/UI/Component/Tab.js index 07576f1..09fb260 100644 --- a/UI/Component/Tab.js +++ b/UI/Component/Tab.js @@ -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) + ) + ); + } }); }