Grant Holliday asked for an explanation of how a Web Access URL should be constructed to for a file in TFS version control, similar to the work item links explained in the TSWA 2005 FAQ.  Hakan responded with the details, which are shown below.

http://[TeamSystemWebAccessSite]/UI/Pages/Scc/ViewSource.aspx?scc-item=[ItemData]

ItemData is the HtmlEncoded form of the query string, such as “id=10&cs=-1”

  • id: the item ID of the item in source control (you need to know this instead of the file path)
  • cs: changeset number (-1: latest)

For example, if the file id is 151611,

    HtmlEncode(“id=151611&cs=-1”) -> “id%3D151611%26cs%3D-1”

So the URL would then be

    http://tswa.domain.com/UI/Pages/Scc/ViewSource.aspx?scc-item=id%3D151611%26cs%3D-1

We’re planning to provide more friendly URLs in a future version, similar to the wi.aspx approach.