title: Use of Mage::getUrl() array parameter
body: <p>Before I used to do this: </p>
  
  <pre><code>$response['url'] = Mage::getBaseUrl() .'module/controller/action?sku=' . $request['sku'] . '&amp;qty=';
  </code></pre>
  
  <p>Now I am required to use <code>::getUrl()</code>, but I can't seem to understand how to make use of the reserved special values (<a href="http://www.magentocommerce.com/wiki/5_-_modules_and_development/reference/geturl_function_parameters" rel="nofollow noreferrer">tutorial here</a>).</p>
  
  <p>So now I do this:</p>
  
  <pre><code>$response['url'] = Mage::getUrl('module/controller/action', array('sku_query' =&gt; $item['sku'], 'qty_query' =&gt; ''));
  </code></pre>
  
  <p>and my url string comes out like this: <code>...module/controller/action/sku_query/skuValue/</code> 
  instead of with <code>?</code> and <code>&amp;</code> for the GET query strings. And also the <code>qty</code> is missing...</p>
  
  <p>Whereas, I want it to look like <code>...module/controller/action?sku=skuValue&amp;qty=</code></p>
  
  <hr>
  
  <p><em>Screenshot from the debugger, to check the value of the url:</em>
  <img src="https://i.stack.imgur.com/8DA9p.png" alt="screen shot from the debugger"></p>
  
  <p><em>How the code looks:</em></p>
  
  <pre><code>Mage::getUrl('orderbysku/producttype/showpopupinproductviewpage', array('_query' =&gt; 'sku='.$item['sku'].'&amp;qty='))
  </code></pre>