I currently have this javascript snippet which loads a URL depending on the dropdown selection...
   var orderby = jQuery('#dropdown');
        var str;
        orderby.change(function(){
        str = jQuery(this).val();
        window.location.href = "http://www.example.com?variable="+str;
    });
Is there a simple way to modify this so that instead of going to http://www.example.com?variable=str it just adds variable=str to the end of the current url and then redirects to it?
EDIT
Didn't make things clear, I still want to redirect but instead of specifying the new URL I want to take the current URL + variable and then redirect
 
    