Does asp.net mvc Url.Content encode the input or should I also use Url.Encode on top of it?
No.
According to http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.content(VS.90).aspx it only expands the ~ character. If that character does not exist then the path is returned as it was passed in.
You can also test it. Using ASP.Net 4.0 it did not for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With