title: C# MVC routing issue with same parameter same controller action method
body: <pre><code> routes.MapRoute(
             name: "PNM",
             url: "PNM/{controller}/{action}/{id}",
             defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
         );
  
          routes.MapRoute(
             name: "DTE",
             url: "DTE/{controller}/{action}/{id}",
             defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
         );
  
          routes.MapRoute(
             name: "CE",
             url: "CE/{controller}/{action}/{id}",
             defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
         );
  </code></pre>
  
  <p>I have routes configured like this. When I run the web site I get this url localhost:12345/</p>
  
  <p>and then I can type any client name to get the client specific logo
  localhost:12345/CE which takes me to the login page with CE logo.</p>
  
  <p>Here's the issue : Once I login URL gets changed to <a href="http://localhost:12345/PNM/Home/Index" rel="nofollow noreferrer">http://localhost:12345/PNM/Home/Index</a></p>
  
  <p>while I am in CE url should be <a href="http://localhost:12345/CE/Home/Index" rel="nofollow noreferrer">http://localhost:12345/CE/Home/Index</a></p>
  
  <p>How should I write my routeconfig file? or what should I change that it goes to specific-client url all the time when I navigate to any page in the website?</p>