mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-22 06:38:40 +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');
|
||||
|
||||
/* 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)
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user