title: Create link to Sitecore Item
body: <p>I know I have done this before but I can't seem to remember where or how.</p>
  
  <p>I want to create a link to an Item in Sitecore.
  This code:</p>
  
  <pre><code>Sitecore.Data.Items.Item itm = Sitecore.Context.Database.GetItem(someID);
  return itm.Paths.Path.ToString();
  </code></pre>
  
  <p>Produces the following string:</p>
  
  <pre><code>http://localhost/sitecore/content/Home/Item1/Item11/thisItem
  </code></pre>
  
  <p>I would like to have this string instead:</p>
  
  <pre><code>http://localhost/Item1/Item11/thisItem.aspx
  </code></pre>
  
  <p>What is the correct way to get the path to the item? In this case I can't use a normal Sitecore link:</p>
  
  <pre><code>Sitecore.Web.UI.WebControls.Link
  </code></pre>