In my MVC project I Use this code in RouteConfig.Cs
routes.MapRoute(
name: "Signin",
url: "login/{ReturnUrl}",
defaults: new { controller = "Account", action = "Signin", ReturnUrl = UrlParameter.Optional }
);
but url not workin well when i'm browsing the signin page from another page for example:
localhost:43773/account/signin?ReturnUrl=anotherpage
i expect : localhost:43773/login/anotherpage
how can i fix this?
localhost:43773/account/signin?ReturnUrl=anotherpage
does not match that route. The route you have specified starts with "login/" and has one paramater – user3559349 Jul 26 '15 at 7:17