带符号的 SharePoint 链接

SharePoint Links with Ampersands

您如何在 SharePoint 中 link 访问其中有符号 URL 的网站?

我的目标是让 SharePoint 通过 TFS 的 Web 界面使用插入到字段中的 ID link 到 TFS 项目。

我试图让我的 SharePoint 任务列表指向 TFS。 TFS URL 使用以下格式:

http://tfs.domain/tfs/site/Project/_workItems/index#_a=edit&id=13129

所以,很自然地,您会认为您可以将 {@TFS_x0020_Item_x0020_Number} 附加到末尾。

<a href="http://tfs.domain/tfs/site/Project/_workItems/index#_a=edit&id={@TFS_x0020_Item_x0020_Number}" target="_blank">

遗憾的是,事实并非如此。

相反,我不得不使用 &以获得所需的输出。我的完整代码如下所示:

<a href="http://tfs.domain/tfs/site/Project/_workItems/index#_a=edit&amp;id={@TFS_x0020_Item_x0020_Number}" target="_blank">
<xsl:value-of select="@TFS_x0020_Item_x0020_Number"/> - Click to View
</a>

最后,我成功地从 Sharepoint link 到 TFS。

我怀疑此解决方案可用于 linking 到其他包含 & 符号 (&) 和其他特殊字符的站点。