src/javascript/app_2/Utils/URL/url_helper.js
/**
     * Prunes the query string values
     *
     * @param {string[]} keys - A list of variable's name which should be in url's query string.
     */
Prunes the query string values
@param {string[]} keys - A list of variable's name which should be in url's query string.
Prunes the query string values @param { string [] } keys - A list of variable ' s name which should be in url ' s query string .
static pruneQueryString(keys = []) {
        const query_params = URLHelper.getQueryParams();
        [...query_params].forEach(value => keys.indexOf(value[0]) <= -1 && query_params.delete(value[0]));
        const query_string = [...query_params].length ? `?${query_params.toString()}` : '';
        window.history.replaceState(null, null, query_string);
    }
static pruneQueryString ( keys = [ ] ) { const query_params = URLHelper . getQueryParams ( ) ; [ ... query_params ] . forEach ( value => keys . indexOf ( value [ 0 ] ) <= - 1 && query_params . delete ( value [ 0 ] ) ) ; const query_string = [ ... query_params ] . length ? ` ${ query_params . toString ( ) } ` : '' ; window . history . replaceState ( null , null , query_string ) ; }
Prunes the query string values
 @param {string[]} keys - A list of variable's name which should be in url's query string.
Prunes the query string values @param { string [] } keys - A list of variable ' s name which should be in url ' s query string .