From 7bb4d3b403d2234747675103deb01648ecce7525 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 13 Aug 2019 21:22:15 +0200 Subject: [PATCH] change uri without adding it to the browser history --- UI/Component/Tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/Component/Tab.js b/UI/Component/Tab.js index a5e772f..eec37f0 100644 --- a/UI/Component/Tab.js +++ b/UI/Component/Tab.js @@ -1,5 +1,5 @@ -import { UriFactory } from '../../Uri/UriFactory.js'; import { Http } from '../../Uri/Http.js'; +import { UriFactory } from '../../Uri/UriFactory.js'; /** * Tab manager class. @@ -90,7 +90,7 @@ export class Tab { jsOMS.addClass(this, 'active'); /* Add selected tab */ - window.history.pushState(null, '', + window.history.replaceState(null, '', UriFactory.build( '{%}#' + (fragmentString === '' ? '' : fragmentString + ',') + this.getElementsByTagName('label')[0].getAttribute('for') )