close
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/issues/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,9 @@ export async function createGitHubLink(
return { permalink: undefined, error: vscode.l10n.t('Repository does not have any remotes.'), originalFile: undefined };
}
const pathSegment = uri.path.substring(folderManager.repository.rootUri.path.length);
const originOfFetchUrl = getUpstreamOrigin(upstream).replace(/\/$/, '');
return {
permalink: `https://github.com/${new Protocol(upstream.fetchUrl).nameWithOwner}/blob/${branchName
permalink: `${originOfFetchUrl}/${new Protocol(upstream.fetchUrl).nameWithOwner}/blob/${branchName
}${pathSegment}${rangeString(range)}`,
error: undefined,
originalFile: uri
Expand Down