running asp.net mvc in a subdomain makes Html.ActionLink render broken links

Posted by eiu165 on Stack Overflow See other posts from Stack Overflow or by eiu165
Published on 2010-05-05T14:28:11Z Indexed on 2010/05/05 14:38 UTC
Read the original article Hit count: 224

I am running MVC in a subdomain
http://test.domain.com which points to the /Test directory on my webhost4life account.

Html.ActionLink("About", "About", "Home")

it renders a link to

http://test.domain.com/Test/Home/About -- which gives a 404

the link should be ..

http://test.domain.com/Home/About

is there a way to override ActionLink to omit the /Test on render?

Thank you

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about asp.net-mvc-routing