hello,
if used different roles and returns errorlogin.aspx i got also returnurl...?
How can i remove returnurl in url...
I tried using global.asax:
<script runat="server">
public class MvcApplication : HttpApplication
{
private const String ReturnUrlRegexPattern = @"\?ReturnUrl=.*$";
private void MvcApplicationOnPreSendRequestHeaders(object sender, EventArgs e)
{
String redirectUrl = Response.RedirectLocation;
if (String.IsNullOrEmpty(redirectUrl)
|| !Regex.IsMatch(redirectUrl, ReturnUrlRegexPattern))
{
return;
}
Response.RedirectLocation = Regex.Replace(redirectUrl,
ReturnUrlRegexPattern,
String.Empty);
}
p ...
Go to the complete details ...