In normal situation we would point a domain e.g. mydomain.com to a server and with this we can create application on IIS and have all working well (Url.Content(), Html.ActionLink(), Html.BeginForm() etc produce correct URL).
I am working in an environment where on the test environment we have something like mydomain.com/test pointing to a server. As a result, if I have an application with:
Physical path: C:\inetpub\wwwroot\demo Virtual path: /demo
then the URL to access it will be http://mydomain.com/test/demo
Unfortunately, all URL and Html helpers will create relative links without the "test" part which makes it broken links. What's the best approach to tackle this? Thank you.