mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 16:38:39 +00:00
change uri without adding it to the browser history
This commit is contained in:
parent
af1f50e209
commit
7bb4d3b403
|
|
@ -1,5 +1,5 @@
|
||||||
import { UriFactory } from '../../Uri/UriFactory.js';
|
|
||||||
import { Http } from '../../Uri/Http.js';
|
import { Http } from '../../Uri/Http.js';
|
||||||
|
import { UriFactory } from '../../Uri/UriFactory.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tab manager class.
|
* Tab manager class.
|
||||||
|
|
@ -90,7 +90,7 @@ export class Tab {
|
||||||
jsOMS.addClass(this, 'active');
|
jsOMS.addClass(this, 'active');
|
||||||
|
|
||||||
/* Add selected tab */
|
/* Add selected tab */
|
||||||
window.history.pushState(null, '',
|
window.history.replaceState(null, '',
|
||||||
UriFactory.build(
|
UriFactory.build(
|
||||||
'{%}#' + (fragmentString === '' ? '' : fragmentString + ',') + this.getElementsByTagName('label')[0].getAttribute('for')
|
'{%}#' + (fragmentString === '' ? '' : fragmentString + ',') + this.getElementsByTagName('label')[0].getAttribute('for')
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user