Skip to content

Commit 14f043d

Browse files
Copilotalexr00
andcommitted
Fix URL construction to use normalized host
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 534c04f commit 14f043d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/github/createPRViewProvider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ export abstract class BaseCreatePullRequestViewProvider<T extends BasePullReques
522522

523523
// Construct the GitHub URL for creating a PR
524524
// Format: https://github.com/{owner}/{repo}/pull/new/{branch}
525-
// or https://github.com/{owner}/{repo}/compare/{base}...{head} for cross-repo PRs
526-
const url = `${baseRepo.remote.url}/pull/new/${compareBranch}`;
525+
const url = `${baseRepo.remote.normalizedHost}/${baseRepo.remote.owner}/${baseRepo.remote.repositoryName}/pull/new/${compareBranch}`;
527526

528527
await vscode.env.openExternal(vscode.Uri.parse(url));
529528
}

0 commit comments

Comments
 (0)