title: jQuery mobile read query string from popup dialog
body: <p>I found in google this question was asked several times. However, I haven't found right solution yet.</p>
  
  <p>I have the following link element:</p>
  
  <pre><code>&lt;a href='../Pages/WriteAbout.html?userName=Jacob' class='ui-btn ui-btn-icon-right ui-icon-carat-r' data-rel='dialog' data-transition: 'pop'&gt;...&lt;/a&gt;
  </code></pre>
  
  <p>When this link is clicked, a popup shows but when I read the url (in order to read the query string) I get the url without the query string 'userName'.</p>
  
  <p>I read the url like this:</p>
  
  <pre><code>window.location.href
  </code></pre>
  
  <p>It seems like jQuery omits the query string from the url.</p>
  
  <p>Is there any other way to pass parameter to a popup dialog? (<code>$.mobile.changePage(...)</code> is not a solution as it opens the page with no dialog popup)</p>