【发布时间】:2011-01-14 20:31:57
【问题描述】:
我们在 Sitecore 6.1.0 中将链接插入富文本时遇到问题。当插入到站点核心项目的链接时,它会输出为:
http://domain/~/link.aspx?_id=8A035DC067A64E2CBBE2662F6DB53BC5&_z=z
而不是实际解析的url:
http://domain/path/to/page.aspx
This article 确认这应该在渲染管道中解决:
在 Sitecore 6 中,它特别插入了一个 包含 Guid 的格式化链接 您要链接到的项目,然后 当项目呈现特殊 链接替换为实际链接 到项目
管道在web.config中添加了ShortenLinks方法
<convertToRuntimeHtml>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.PrepareHtml, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.ShortenLinks, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.SetImageSizes, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.ConvertWebControls, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.FixBullets, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.ConvertToRuntimeHtml.FinalizeHtml, Sitecore.Kernel"/>
</convertToRuntimeHtml>
所以我真的不明白为什么链接仍然以 ID 格式呈现,而不是完整的 SEO-tastic url。谁有线索?
谢谢,亚当
【问题讨论】:
标签: url hyperlink sitecore pipeline rte