0

I am confused about what is supposed to be encoded and when and when it gets decoded. For example:

           <%=Html.ActionLink("Login","Login",
            new {controller="Account", returnUrl=HttpContext.Current.Request.RawUrl})%>

on the login page the address will be as follows:

            /Account/Login?returnUrl=%2FPreviousDirectory

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?

1 Answer 1

0

This answer should show you how to do it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.