Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 554b193

Browse files
authored
Merge pull request #1309 from github/fixes/1291-open-on-github-enterprise
Fix opening links on enterprise instances.
2 parents 10cc6d4 + e714452 commit 554b193

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.VisualStudio/Menus/MenuBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ protected async Task<bool> IsGitHubRepo()
131131
if (!isdotcom)
132132
{
133133
var repo = await SimpleApiClient.GetRepository();
134-
return (repo.FullName == ActiveRepo.Name || repo.Id == 0) && SimpleApiClient.IsEnterprise();
134+
var activeRepoFullName = ActiveRepo.Owner + '/' + ActiveRepo.Name;
135+
return (repo.FullName == activeRepoFullName || repo.Id == 0) && SimpleApiClient.IsEnterprise();
135136
}
136137
return isdotcom;
137138
}

0 commit comments

Comments
 (0)