title: Multiple controller route path in MVC
body: <p>I have a mvc application Areas folder structure of the following type:</p>
  
  <p>Areas => FolderA => Controllers => ControllerA &amp; ControllerB</p>
  
  <p>I have used the following register path in AreaRegistration:</p>
  
  <pre><code>context.MapRoute(
              "default1",
              "FolderA/{controller}/{action}/{id}",
              new { controller = "ControllerA|ControllerB", action = "Index", id = UrlParameter.Optional }
          ); 
  </code></pre>
  
  <p>and I have two links on a shared layout as:</p>
  
  <pre><code>@Html.ActionLink("Link 1", "ActionA", "ControllerA", null)
  @Html.ActionLink("Link 2", "ActionB", "ControllerB", null)
  </code></pre>
  
  <p>Link 1 seems to be working fine and redirects as expected. Issue is with Link2, which always forms the following url and i get 404 error.</p>
  
  <p><a href="http://localhost:29661/FolderA/ControllerA/ActionB?Length=15" rel="nofollow">http://localhost:29661/FolderA/ControllerA/ActionB?Length=15</a></p>
  
  <p>The default application route path is:</p>
  
  <pre><code>routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          ); 
  </code></pre>
  
  <p>Seems like it is always looking for ActionB in the same controller, even i have 2 different paths registered. Can anyone please help it out.</p>