From d31fddd8e7c73f89f5fa69af13f8d31f2a636ac3 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 19 Dec 2019 20:11:19 +0100 Subject: [PATCH] Use history.replaceState instead of history.pushState This removes the URL with the URL parameter setlang from the history. A click on history back doesn't show the URL parameter setlang anymore. Change-Id: I0ea8c4508bedd9758a1cebbe8ecb2a7113bf8538 --- resources/js/ext.uls.setlang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ext.uls.setlang.js b/resources/js/ext.uls.setlang.js index e8786e9c..3b710248 100644 --- a/resources/js/ext.uls.setlang.js +++ b/resources/js/ext.uls.setlang.js @@ -94,7 +94,7 @@ $cancelBtn.on( 'click', function () { var urlWithoutSetlang = removeParam( 'setlang' ); - history.pushState( null, 'no-setlang-url', urlWithoutSetlang ); + history.replaceState( null, 'no-setlang-url', urlWithoutSetlang ); ulsDialog.close(); } ); }