From 8a3ca4a712cb035d7705dbb770eda42698cdd508 Mon Sep 17 00:00:00 2001 From: Acey Bunch Date: Wed, 20 May 2015 07:52:45 -0400 Subject: [PATCH] Better fix for D-09391 --- VersionOne.ServerConnector/VersionOneProcessor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VersionOne.ServerConnector/VersionOneProcessor.cs b/VersionOne.ServerConnector/VersionOneProcessor.cs index f200f02..ccca1ed 100644 --- a/VersionOne.ServerConnector/VersionOneProcessor.cs +++ b/VersionOne.ServerConnector/VersionOneProcessor.cs @@ -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)