title: magento set Switch Currency Url
body: <p>I have problem with Currency URL.</p>
  
  <p>Suppose my URL is www.example.com/by_women/?color=black
  Now i want to redirect same page after change currency.
  Here is my code.</p>
  
  <hr>
  
  <pre><code>&lt;?php if($this-&gt;getCurrencyCount() &gt; 1): ?&gt;
      &lt;span&gt;Select Currency:&lt;/span&gt;
      &lt;select name="custom-currency-selector" id="custom-currency-selector"&gt;
      &lt;?php foreach ($this-&gt;getCurrencies() as $_code =&gt; $_name): ?&gt;
          &lt;option value="&lt;?php echo $this-&gt;getSwitchCurrencyUrl($_code)?&gt;"
              &lt;?php if($_code == $this-&gt;getCurrentCurrencyCode()): ?&gt;
                  selected="SELECTED"
              &lt;?php endif; ?&gt;&gt;
              &lt;?php echo $_code ?&gt;
          &lt;/option&gt;
      &lt;?php endforeach; ?&gt;
      &lt;/select&gt;
      &lt;?php endif; 
  </code></pre>