title: How to get the URL of a page/section in Magento admin
body: <p>I can't seem to find a definitive answer on this one.  How do you get a url to a page in the admin backend?</p>
  
  <p>For example, let's say I have a module that uses a controller with a frontname of <em>mymodule</em>.  If I call:</p>
  
  <pre><code>$this-&gt;getUrl('mymodule/controller/action')
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>http://mydomain.com/index.php/mymodule/controller/action
  </code></pre>
  
  <p>This doesn't work because it doesn't have the admin frontname included.</p>
  
  <p>I found <a href="http://www.magentocommerce.com/boards/viewthre/viewthread/232169/" rel="nofollow">this thread</a> that mentions using this:</p>
  
  <pre><code>Mage::helper("adminhtml")-&gt;getUrl();
  </code></pre>
  
  <p>However that doesn't append the admin frontname to the URL either...so what's the point of passing it through the adminhtml helper?  The thread also says you can use this to get the admin frontname:</p>
  
  <pre><code>Mage::getConfig()-&gt;getNode('admin/routers/adminhtml/args/frontName');
  </code></pre>
  
  <p>So am I supposed to build the correct URL using these 2 methods or is there an easier way to accomplish this?  I would figure there has to be an easy way, but I just can't figure it out.</p>
  
  <p>Thanks :)</p>