Unbreak the ?setlang functionality

This mistake has caused setlang=xx to get stuck and not reload the page.

Bug: T377572
Change-Id: I1dd9aeb1a6c52ade6b60744a8b29cf39f8b85885
This commit is contained in:
Ebrahim Byagowi
2024-10-18 23:07:50 +03:30
parent 5f16886746
commit d411ee1e93

View File

@@ -68,7 +68,7 @@
*/
function currentUrlWithoutSetLang() {
var url = new URL( location.href );
url.searchParams.remove( 'setlang' );
url.searchParams.delete( 'setlang' );
return url.toString();
}