@Html.ContentLink(linkItem) not working when app in virtual directory



I was debugging an issue where my links were not processed properly by @Html.ContentLink and I was wondering if it supported the scenario where your app would be accessed from a virtual directory.

For example, if my app root would be http://localhost:1234, the content link would render fine, but http://localhost:1234/myapp/ would return the link unprocessed (with ~/...guid...)

I'm not sure if my usage is wrong or if the EPiServer.Web.Mvc.Html.StructureHtmlHelperExtensions.ContentLink method should be aware of the app context.

In the mean time, I'm removing the virtual folder name before calling the methis and it works fine.



Dec 05, 2016 17:17

I wouldn't recommend running Epi in a virtual directory. I think it's never been supported.

Dec 18, 2016 23:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.