Quantcast
Viewing all articles
Browse latest Browse all 9076

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

Hi,

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.

Thanks.

JC


Viewing all articles
Browse latest Browse all 9076

Trending Articles