technobuba
New Member
I am confused about what is supposed to be encoded and when and when it gets decoded. For example:\[code\] <%=Html.ActionLink("Login","Login", new {controller="Account", returnUrl=HttpContext.Current.Request.RawUrl})%>\[/code\]on the login page the address will be as follows:\[code\] /Account/Login?returnUrl=%2FPreviousDirectory\[/code\]suddenly this will not take me back after filling in credentials and instead takes me to root directory. however, it was working fine before.My question is regarding the "%2F". Is this the default behavior or did I mess something up? Does this need to be decoded?