@Razor 2 "~/" is not exactly Url.Content()
I've had a wiered scenario where I created new Site in IIS and mapped 2 applications to 2 different sites /old/ and /new/. Also I've set up some rewriting rules for homepage to rewrite to /new/ and other urls to map to /old/{R:0}
half or resources in "homepage" were rendered as src="@Url.Content("~/somethn")"
and they were pointing to correct urls, but modernizr were referenced as "~/somethn" and url rendered in the page were "/new/somethn" instead of "/somethn"
When I replaced it with @Url.Content("~/somethn") it rendered just fine as it should.
I've had a wiered scenario where I created new Site in IIS and mapped 2 applications to 2 different sites /old/ and /new/. Also I've set up some rewriting rules for homepage to rewrite to /new/ and other urls to map to /old/{R:0}
half or resources in "homepage" were rendered as src="@Url.Content("~/somethn")"
and they were pointing to correct urls, but modernizr were referenced as "~/somethn" and url rendered in the page were "/new/somethn" instead of "/somethn"
When I replaced it with @Url.Content("~/somethn") it rendered just fine as it should.