After login redirect to dashboard

Topics: Business Logic Layer
Aug 29, 2012 at 11:35 PM

Anyone know of a way to redirect to the admin dashboard (/admin/default.cshtml) instead of taking the user to the last page visited on the main site?

Sep 2, 2012 at 7:43 PM

The best i could come up with is this:

Open login.aspx.cs in the Account folder and change this line:

 this.Response.Redirect(this.Request.UrlReferrer.ToString(), true);

For example you could replace the request.urlreferrer with

This does not work consistently. If you log off from the dashboard and then log back in you end up on the front page