In the documentation of ASP.NET MVC says that you should do something like this when have a link in a view
<a href="@href("~/SubPage")">Subpage</a>.
The razor engine replaces @href("~/SubPage")
to /Subpage
.
What is the advantage of do it this way instead
<a href="/SubPage">Subpage</a>.
In cases like this and in others (like creating a form) why use the razor engine instead of write directly what you want. I think is faster on the server side to print something directly that let the engine to generate it.