Skip to content

Commit c7505a7

Browse files
authored
Merge pull request #15 from docusign/inbar-fix-github-links
Fixing CreateSourcePath method to ensure no 404s when going to GitHub
2 parents 1ff40db + 8f53bff commit c7505a7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

launcher-csharp/eSignature/Controllers/EgController.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,21 @@ protected virtual void InitializeInternal()
5151
}
5252

5353
public dynamic CreateSourcePath()
54-
{
54+
{
5555
var uri = Config.githubExampleUrl;
5656
if (ControllerContext.RouteData.Values["area"] != null)
5757
{
5858
uri = $"{uri}/{ControllerContext.RouteData.Values["area"]}";
59+
return $"{uri}/Controllers/{this.GetType().Name}.cs";
5960
}
60-
if (EgName == "eg001")
61+
else if (this.EgName != "eg001") // eg001 is at the top level
6162
{
62-
return $"{uri}/launcher-csharp/{this.GetType().Name}.cs";
63+
uri = $"{uri}/eSignature";
64+
return $"{uri}/Controllers/{this.GetType().Name}.cs";
6365
}
6466
else
6567
{
66-
return $"{uri}/launcher-csharp/eSignature/Controllers/{this.GetType().Name}.cs";
68+
return $"{uri}/{this.GetType().Name}.cs";
6769
}
6870
}
6971

0 commit comments

Comments
 (0)