{"id":1983,"date":"2007-08-23T23:58:47","date_gmt":"2007-08-23T23:58:47","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/08\/23\/how-to-construct-the-team-system-web-access-2005-url-to-a-file-in-version-control\/"},"modified":"2007-08-23T23:58:47","modified_gmt":"2007-08-23T23:58:47","slug":"how-to-construct-the-team-system-web-access-2005-url-to-a-file-in-version-control","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-construct-the-team-system-web-access-2005-url-to-a-file-in-version-control\/","title":{"rendered":"How to construct the Team System Web Access 2005 URL to a file in version control"},"content":{"rendered":"<p><a href=\"http:\/\/www.holliday.com.au\/\">Grant Holliday<\/a> asked for an explanation of how a&nbsp;Web Access URL should be constructed to for a file&nbsp;in TFS version control, similar to the work item links explained in the <a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2007\/08\/17\/team-system-web-access-for-tfs-2005-faq.aspx\">TSWA 2005 FAQ<\/a>.&nbsp; Hakan responded with the details, which are shown below.<\/p>\n<blockquote><p> http:\/\/<em>[TeamSystemWebAccessSite]<\/em>\/UI\/Pages\/Scc\/ViewSource.aspx?scc-item=<em>[ItemData]<\/em> <\/p>\n<p>ItemData is the HtmlEncoded form of the query string, such as &ldquo;id=10&amp;cs=-1&rdquo;  <\/p>\n<ul>\n<li>id: the item ID of the item in source control (you need to know this instead of the file path)<\/li>\n<li>cs: changeset number (-1: latest) <\/li>\n<\/ul>\n<p>For&nbsp;example, if the file id is 151611, <\/p>\n<p>&nbsp;&nbsp;&nbsp; HtmlEncode(&ldquo;id=151611&amp;cs=-1&rdquo;) -&gt; &ldquo;id%3D151611%26cs%3D-1&rdquo;  <\/p>\n<p>So the URL would then be <\/p>\n<p>&nbsp;&nbsp; &nbsp;http:\/\/tswa.domain.com\/UI\/Pages\/Scc\/ViewSource.aspx?scc-item=id%3D151611%26cs%3D-1 <\/p>\n<p>We&rsquo;re planning to provide more friendly URLs in a future version, similar to the wi.aspx approach.<\/p>\n<\/blockquote>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:d6ca876e-4195-48a1-9af1-d52cc7cbbf7e\" style=\"padding-right: 0px;padding-left: 0px;padding-bottom: 0px;margin: 0px;padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20system%20web%20access\" rel=\"tag\">team system web access<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grant Holliday asked for an explanation of how a&nbsp;Web Access URL should be constructed to for a file&nbsp;in TFS version control, similar to the work item links explained in the TSWA 2005 FAQ.&nbsp; 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 &ldquo;id=10&amp;cs=-1&rdquo; [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,9],"class_list":["post-1983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-foundation","tag-team-system-web-access"],"acf":[],"blog_post_summary":"<p>Grant Holliday asked for an explanation of how a&nbsp;Web Access URL should be constructed to for a file&nbsp;in TFS version control, similar to the work item links explained in the TSWA 2005 FAQ.&nbsp; 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 &ldquo;id=10&amp;cs=-1&rdquo; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/1983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=1983"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/1983\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=1983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=1983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=1983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}