register and login in one page changes my url <p>Im having the following issue.</p> <p>I have a View typed to a class SiteAuthenticationVM.cs.</p> <p>The name of my view is "SiteAuthentication.cshtml" into the folder Views/Users</p> <p>For other hand, i have one controller called UsersController with 4 actions:</p> <pre><code>[HttpGet] public ActionResult Registration() { return View("SiteAuthentication"); } [HttpPost] public ActionResult Registration(SiteAuthenticationVM usertoregister) { return View("SiteAuthentication",usertoregister); } [HttpGet] public ActionResult Login() { return View("SiteAuthentication"); } [HttpPost] public ActionResult Login(SiteAuthenticationVM usertologin) { return View("SiteAuthentication",usertoregister); } </code></pre> <p>I have 2 routes defined:</p> <ul> <li><p>"/register" is handled by UsersController Registration action.</p></li> <li><p>"/login" is handled by UsersController Login action.</p></li> </ul> <p>When i post my Login form is posted to /login if previously i was in url "/register", it changes to /login. Is there any way to keep my url "/register" for both post actions?</p> <p>Is a bad practice if the url changes? </p>