title: Add query string to URL redirect
body: <p>I am trying to use a query string which I can successfully do unless it is a mobile page. What I am doing is checking if it is mobile and redirecting. Is there a way to attach the query string to the redirect url?</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;script type="text/javascript"&gt;// &lt;![CDATA[  
      var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));  
      if (mobile) {  
          document.location = "http://www.xxxxxxx.com/mobile";  
      }  
  // ]]&gt;&lt;/script&gt; 
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  
  &lt;title&gt;xxxxxxxxx&lt;/title&gt;
  
  &lt;script type="text/javascript"&gt;
      window.onload = function(){
          var total = 0;
          for(var x = 0; x &lt; parameters.length; x++){
              document.getElementById("customerID").value = parameters[x].value;
          }
          document.forms[0].onsubmit = validate;  
      }
  &lt;/script&gt;
  </code></pre>