I have a domain "http://www.abc.com". I deployed an ASP.net MVC4 application in this domain. I also configured the default route in RouteConfig.cs, as shown below.
routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "MyApp", action = "Home", id = UrlParameter.Optional } );
The above comparison ensures that anyone trying to visit "http://www.abc.com" automatically displays the page "http://www.abc.com/MyApp/Home"
Everything works as expected, but the address bar in the browser shows "http://www.abc.com" instead of "http://www.abc.com/MyApp/Home". Is there a way to get the browser to display the full URL, including the controller and action?
user1625066
source share