First we have the form:
<link href="../../../content/somecontent" />
This is annoying to figure out (need to count path depth one by one) and the most prone to mistakes. Someone came up with this:
<link runat="server" href="~/content/somecontent" />
This is easier but I don't know how casual I can be using that solution. Can it be used anywhere? Does it work with Spark? How does it affect rendering speed? And the last and worst resort would be:
<link href="/content/somecontent" />
This doesn't allow the web app to reside in a sub directory which I don't like, especially for testing purposes. Are there other, better ways that I'm not aware of?