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?

```
$(document).on('click',function(e){
    var querystring = '?country=' + countrySelected;

    if(e.nodeName === "A"){
        window.location = window.location.href + querystring;
    }
});

```