Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: ~/ url resolution [58]

$
0
0
@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.



Viewing all articles
Browse latest Browse all 7215

Trending Articles