title: ExpressionEngine: how to get the path of a page given its entry_id (with the structure plug-in)
body: <p>I'm trying to build an extension that would create pages for automatic redirections of short URLs, and to make it short, I need to get the path of a page given its entry_id.</p>
  
  <p>Say, I have a page with the path: <a href="http://server.tld/index.php/path/to/my/page" rel="nofollow">http://server.tld/index.php/path/to/my/page</a>
  But, in the code, I only know the entry_id of this page.</p>
  
  <p>If I look on the exp_channel_titles table, I can get the url_title field. But it will only contain "page". And I'd like to get "/path/to/my/page". And there doesn't seem to be any API for this.</p>
  
  <p>Do you know how I could proceed?</p>
  
  <p>Thanks a lot.</p>