title: ActionLink behavior with ASP.NET WCF and Routes.Add in MVC application
body: <p>I'm want to host both WCF 4 and MVC 3 in my C#.Net project. But when I add the service paths for WCF, Html.ActionLink starts creating a  wrong url for MVC app. My route table is created as:</p>
  
  <pre><code>routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
  RouteTable.Routes.Add(new ServiceRoute("api1/projects", new WebServiceHostFactory(), typeof(Projects)));
  routes.MapRoute(
     "Default", // Route name
     "{controller}/{action}/{id}", // URL with parameters
     new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
  );
  </code></pre>
  
  <p>Above route table creates the right access paths to both the WCF and MVC applications, but <code>Html.ActionLink</code> creates the edit links as </p>
  
  <pre><code>http://localhost:8000/api1/projects?action=Edit&amp;controller=technology&amp;id=2 
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>http://localhost:8000/technology/Edit/2
  </code></pre>
  
  <p>If I omit the line starting with <code>RouteTable.Routes.Add</code>, the <code>ActionLink</code> works as expected (and of course not the WCF). How can I add the WCF routes and make sure actionlink behaviour doesn't change?</p>