title: ASP.net MVC Areas and creating an ActionLink with ID (SEO / clean URL)
body: <p>I am building a Help Desk Ticket system for a client using ASP.NET MVC 1.0 / C#.  I have implemented Steven Sanderson's "<a href="http://blog.codeville.net/2008/11/05/app-areas-in-aspnet-mvc-take-2/" rel="nofollow noreferrer">App Areas in ASP.NET MVC, Take 2</a>" and it is working great.</p>
  
  <p>In my Globabl.asax page I have some routes defined as such:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      // Routing config for the HelpDesk area
      routes.CreateArea("HelpDesk", "ProjectName.Areas.HelpDesk.Controllers",
          routes.MapRoute(null, "HelpDesk/{controller}/{action}", new { controller = "Ticket", action = "Index" }),
          routes.MapRoute(null, "HelpDesk/Ticket/Details/{TicketId}", new { controller = "Ticket", action = "Details", TicketId = "TicketId" })
      );
  }</code></pre>
  
  <p>So, if I enter "<a href="http://localhost/HelpDesk/Ticket/Details/12" rel="nofollow noreferrer">http://localhost/HelpDesk/Ticket/Details/12</a>" in the browser address bar manually, I get the results I expect.  Here is my controller:</p>
  
  <pre><code>public ActionResult Details(int TicketId)
  {
      hd_Ticket ticket = ticketRepository.GetTicket(TicketId);
      if (ticket == null)
          return View("NotFound");
      else
          return View(ticket);
  }</code></pre>
  
  <p>In my view I have:</p>
  
  <pre><code>&lt;%= Html.ActionLink(item.Subject, "Details", new { item.TicketId } )%&gt;
  </code></pre>
  
  <p>But that code generates "<a href="http://localhost/HelpDesk/Ticket/Details?TicketId=12" rel="nofollow noreferrer">http://localhost/HelpDesk/Ticket/Details?TicketId=12</a>" which also returns the expected results.  My Question is... </p>
  
  <p>How do I define an ActionLink when using Steven Sanderson's <a href="http://blog.codeville.net/2008/11/05/app-areas-in-aspnet-mvc-take-2/" rel="nofollow noreferrer">Areas</a> that will create a clean URL like: "<a href="http://localhost/HelpDesk/Ticket/Details/12" rel="nofollow noreferrer">http://localhost/HelpDesk/Ticket/Details/12</a>"  ?</p>