How to change URL without redirect?
<p>I am trying to add country name for every link in page my website. It is redirecting two times. How can I change URL without redirecting?</p>
<pre><code>$(document).on('click',function(e){
    var querystring = '?country=' + countrySelected;
    
    
    if(e.nodeName === &quot;A&quot;){
        window.location = window.location.href + querystring;
    }
});
</code></pre>