mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-12 07:38:41 +00:00
only rewrite url for tabs if the tab has the class url-rewrite
This commit is contained in:
parent
15db183a81
commit
5c4737d46b
|
|
@ -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)
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user