You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
In previous versions of ASP.NET MVC, Url.Content("~") returns the application's root directory (ie. /foo). On ASP.NET MVC 6, this just returns a verbatim "", and you need to actually use Url.Content("~/"). It's a subtle difference, but it appears that older versions just check that the first character is "", whereas newer versions check that the string starts with "~/" (ie. it contains a tilde and a slash)
In previous versions of ASP.NET MVC,
Url.Content("~")
returns the application's root directory (ie./foo
). On ASP.NET MVC 6, this just returns a verbatim "", and you need to actually use", whereas newer versions check that the string starts with "~/" (ie. it contains a tilde and a slash)Url.Content("~/")
. It's a subtle difference, but it appears that older versions just check that the first character is "Old code:
New code:
The text was updated successfully, but these errors were encountered: