Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Created Unassigned: Tilda in View break links! [129]

$
0
0
In the VS2013 all the Url's like this "~/content/etc" in MVC Views are compiled incorrectly. They become "/main/index/~/content/etc". In the VS2012 it worked :(

For example, VS2012:

WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...

And VS2013 (all go as one WriteLiteral):

WriteLiteral(@"</title>

<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />


Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>