title: ASP.NET MVC Default route?
body: <p>I created a new ASP.NET MVC project and implemented a site authorization filter.</p>
  
  <p>When I map the routes to the <code>{controller}/{action}</code> pair, I pass a role = "SomeRole" default to the route.</p>
  
  <p>It works perfectly if I go through the full url (<code>http://localhost/somecontroller/someaction</code>) and I specified the full route </p>
  
  <pre><code>MapRoute("SomeAction", "somecontroller/someaction",
   new { controller = "SomeController", action = "SomeAction", role = "SomeRole");
  </code></pre>
  
  <p>The problem is that when somebody visits <code>http://thesiteaddress.com</code> there has to be a default route that invokes <code>/home/index</code> instead of <code>/</code> and if I specify </p>
  
  <pre><code>MapRoute("Default", new { controller="somecontroller",action="action" });
  </code></pre>
  
  <p>then I lose the <code>role="SomeRole"</code> from the previous <code>MapRoute</code>.</p>
  
  <p>How can I solve this?</p>