This is potentially a fix without a problem, but…
Using syntax like this (I’m using T4MVC here):
I expect to have the link rendered as:
Yet, sometimes, it would render as:
WTF? What’s with that? There is (AFAIKT) no functional difference between them, but I found it annoying.
My google-fu failed me for quite a while until I saw a random comment in some post and found that if I used this syntax:
<a href="@Url.Action("Index", "Home")">Home</a>
I always got the right rendered link.
Why? I don’t know. I feel like I should know. I thought it might have to do with RenderPartial vs. something else, but that didn’t seem to be it. I’m tempted to say it is due to T4MVC, but don’t know why it would be specifically.
Anyway, just a note to myself that, if I’m feeling anal about links, this gets rid of the issue.