Reloading URL with GET variable in Jquery
<p>I'm trying to reload a page with an appended variable in the URL, deviceID.  It shows up in "realtime" div just fine.  What am I doing wrong?:</p>

<pre><code>document.getElementById("realtime").innerHTML = "&lt;pre&gt;"+JSON.stringify(msg)+"&lt;/pre&gt;";

        var obj = jQuery.parseJSON(JSON.stringify(msg));
        var deviceId = obj.deviceId;

        var pathname = window.location.pathname;
        var pathAppend = pathname + "?deviceId=" + deviceId;

            window.location.reload(pathAppend);
</code></pre>
