ServiceStack ToPostUrl() extension method ignores virtual directories
<p>I'm using ServiceStack.Razor C# in Visual Studio 2015 for a small internal project and am working (learning) from the sample projects. As part of my development, I host all of my websites and apis etc in virtual directories, so rather than </p>

<p>localhost/hello</p>

<p>i have </p>

<p>localhost/SomeProject/hello</p>

<p>The problem is however, that once the razor is being delivered from the virtual directory /SomeProject/ , the ToPostUrl() extension method creates an absolute path and so the logic fails:</p>

<pre><code>&lt;form action="@(new Hello().ToPostUrl())"&gt;
</code></pre>

<p>results in </p>

<pre><code>&lt;form action="/hello"&gt; 
</code></pre>

<p>which breaks the redirect when the form is submitted. What is the correct way to handle this? A virtual directory doesn't seem like a particularly unusual use-case?</p>

<p>Thanks</p>