{localLink} parsing in MVC is now all working.

This commit is contained in:
Shannon Deminick
2012-09-29 11:35:31 +07:00
parent 840109dc58
commit d76f6c1cdb

View File

@@ -233,10 +233,8 @@ namespace Umbraco.Web
ItemRenderer.Instance.Load(item);
ItemRenderer.Instance.Render(item, htmlWriter);
//Now, we need to ensure that local links are parsed
return new HtmlString(
TemplateUtilities.ParseInternalLinks(
output.ToString()));
//because we are rendering the output through the legacy Item (webforms) stuff, the {localLinks} will already be replaced.
return new HtmlString(output.ToString());
}
}