title: ASP.NET MVC Routing two parameters with static string in between
body: <p>This is my routing:</p>
  
  <pre><code>routes.MapRoute(null,
      "shelves/{id1}/products/{action}/{id2}",
      new { controller = "Products", action = "List", id1 = "", id2 = ""});
  </code></pre>
  
  <p>The thought is that you can do something like this:</p>
  
  <pre><code>http://server/shelves/23/products/edit/14
  </code></pre>
  
  <p>And be able to edit product 14 on shelf 23. Checking it with <a href="http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx" rel="nofollow noreferrer">Route Debugger</a>, the path matches the routing, but when I try to navigate to it with Route Debugger off, it shows me a HTTP 404 error. Does anybody know why this is happening?</p>