Skip to content

Commit 02dd6ed

Browse files
authored
Merge pull request #7 from docusign/DEVDOCS-3396
DEVDOCS-3396 Fixing 404 for source code links in launcher
2 parents c9b904c + fe5f37b commit 02dd6ed

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

launcher-csharp/eSignature/Controllers/EgController.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@ protected virtual void InitializeInternal()
5050
}
5151

5252
public dynamic CreateSourcePath()
53-
{
53+
{
5454
var uri = Config.githubExampleUrl;
5555
if (ControllerContext.RouteData.Values["area"] != null)
5656
{
5757
uri = $"{uri}/{ControllerContext.RouteData.Values["area"]}";
5858
}
59-
60-
return $"{uri}/Controllers/{this.GetType().Name}.cs";
59+
if (EgName == "eg001")
60+
{
61+
return $"{uri}/launcher-csharp/{this.GetType().Name}.cs";
62+
}
63+
else
64+
{
65+
return $"{uri}/launcher-csharp/eSignature/Controllers/{this.GetType().Name}.cs";
66+
}
6167
}
6268

6369
protected bool CheckToken(int bufferMin = 60)

launcher-csharp/eSignature/Models/DSConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class DSConfiguration
2525
public string docDocx = "World_Wide_Corp_Battle_Plan_Trafalgar.docx";
2626
public string tabsDocx = "World_Wide_Corp_salary.docx";
2727
public string docPdf = "World_Wide_Corp_lorem.pdf";
28-
public string githubExampleUrl = "https://github.com/docusign/code-examples-csharp/tree/master/code-examples-csharp/Controllers/";
28+
public string githubExampleUrl = "https://github.com/docusign/code-examples-csharp/tree/master";
2929
public string documentation = null;
3030
}
3131
}

0 commit comments

Comments
 (0)