title: Joomla 3.1 - Get active menu item url
body: <p>As soon as I click on the "Media" item in my main menu, the following url is generated: </p>
  
  <p><a href="http://test.local/index.php/media-files" rel="nofollow">http://test.local/index.php/media-files</a></p>
  
  <p>Now, I would like to create a module that is displayed only in media-files. Moreover, I want to retrieve the url of this active menu item.</p>
  
  <p>So my question: How can I get the SEF-URL of an active menu item?</p>
  
  <p>Thanks in advance,</p>
  
  <p>enne</p>