title: Trailing slash on an ASP.NET MVC route
body: <p>In the latest MVC preview, I'm using this route for a legacy URL:</p>
  
  <pre><code>routes.MapRoute(
  "Legacy-Firefox", // Route name
  "Firefox-Extension/", // URL with parameters
  new { controller = "Home", action = "Firefox", id = "" } // Parameter defaults
  );
  </code></pre>
  
  <p>The problem is that both of these URL's work:
  <a href="http://example.com/Firefox-Extension" rel="nofollow noreferrer">http://example.com/Firefox-Extension</a>
  <a href="http://example.com/Firefox-Extension/" rel="nofollow noreferrer">http://example.com/Firefox-Extension/</a></p>
  
  <p>I only want the second to work (for SEO). Also, when I create a link to that page, the routing engine gives me back a URL without a trailing slash.</p>
  
  <p>This is the code I'm using to generate the link:</p>
  
  <pre><code>&lt;%= Html.ActionLink("Firefox Extension", "Firefox", "Home")%&gt;
  </code></pre>
  
  <p>I believe can fix the first problem by using an HTTP handler to do a 301 redirect to the URL with the trailing slash. However, I want to link to the URL with the trailing slash, and I'm hoping to not have to hard-code the version with the slash.</p>
  
  <p>Anyone know how to force the route to use a trailing slash?</p>