title: MVC URL structure
body: <p>Have the following link in Index.cshtml:</p>
  
  <pre><code> @Html.ActionLink("Edit", "Edit", new { clientId = item.ClientId ,      overrideId=item.OverrideId})
  </code></pre>
  
  <p>and route as:</p>
  
  <pre><code> routes.MapRoute(
            name: "Edit",
             url: "{controller}/{action}/{clientId}/{overrideId}",
            defaults: new { controller = "ClientOverride", action = "Edit", clientId =       UrlParameter.Optional, overrideId = UrlParameter.Optional }
         );
  </code></pre>
  
  <p>When redirect occurs from Index to Edit, the following URL is created:</p>
  
  <p>.../clientoverride/edit/6?overrideId=1</p>
  
  <p>while I would expect something like:</p>
  
  <p>.../clientoverride/edit/6/1</p>
  
  <p>Why so inconsistent URL is created? What can I do to make it look like a tree structure with clientoverride/edit/6/1 at the end?</p>