Redirect page with location.href
<p>I am trying to redirect one url using JavaScript for passing values to Java code using </p>

<pre><code>location.href = "/something/uId=" + Idvalue + "time=" + "timeValue"
</code></pre>

<p>Here I am checking from two radio buttons that are today and Week radio buttons.</p>

<p>It is working fine for week and passing id and time value i.e., <code>200</code>(example), <code>week</code>(Example). </p>

<p>But when it comes to today option it is passing only time value only. I tried the following ways </p>

<pre><code>location.href += "&amp;uId=" + uId;
// and 
location.href += "time=" + today + "&amp;uId=" + uId; 
</code></pre>

<p>But it is passing only today only. I was surprised to see additional variables <code>timeframe=today&amp;x=26&amp;y=4</code> but I did't pass these x and y values.</p>
