Skip to content

Commit

Permalink
Better fix for D-09391
Browse files Browse the repository at this point in the history
  • Loading branch information
Acey Bunch committed May 20, 2015
1 parent 1e1e963 commit 8a3ca4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VersionOne.ServerConnector/VersionOneProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ public void UpdateProject(string projectId, Link link)

public string GetWorkitemLink(Workitem workitem)
{
return string.Format("{0}/assetdetail.v1?oid={1}", configuration["ApplicationUrl"].InnerText, workitem.Id);
string instanceUrl = configuration["ApplicationUrl"].InnerText;
if (instanceUrl.LastIndexOf("/") + 1 != instanceUrl.Length) instanceUrl += "/";
return string.Format("{0}assetdetail.v1?oid={1}", instanceUrl, workitem.Id);
}

public string GetSummaryLink(Workitem workitem)
Expand Down

0 comments on commit 8a3ca4a

Please sign in to comment.