diff --git a/CHANGELOG.md b/CHANGELOG.md index e069ab8877c94..268a6f52feb0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Changes _rebase_, _merge_, _revert_, and _branch delete_ commands no longer use/open a terminal ([#3527](https://github.com/gitkraken/vscode-gitlens/issues/3527), [#3530](https://github.com/gitkraken/vscode-gitlens/issues/3530), [#3532](https://github.com/gitkraken/vscode-gitlens/issues/3532), [#3534](https://github.com/gitkraken/vscode-gitlens/issues/3534)) - Improves telemetry tracking for hover actions by adding source and detail attributes to events from editor hovers ([#4764](https://github.com/gitkraken/vscode-gitlens/issues/4764)) +### Fixed + +- Fixes [#4776](https://github.com/gitkraken/vscode-gitlens/issues/4776) Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization — thanks to [PR #4777](https://github.com/gitkraken/vscode-gitlens/pull/4777) by Daniel Asher ([@danielasher115](https://github.com/danielasher115)) + ## [17.7.0] - 2025-11-11 ### Added diff --git a/README.md b/README.md index be51e1c44edd6..d36618ae33b6f 100644 --- a/README.md +++ b/README.md @@ -447,6 +447,7 @@ A big thanks to the people that have contributed to this project 🙏❤️: - Jordon Kashanchi ([@jordonkash](https://github.com/JordonKash)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jordonkash) - JounQin ([@JounQin](https://github.com/JounQin)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=JounQin) - Noritaka Kobayashi ([@noritaka1166](https://github.com/noritaka1166)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=noritaka1166) +- Daniel Asher ([@danielasher115](https://github.com/danielasher115)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=danielasher115) Also special thanks to the people that have provided support, testing, brainstorming, etc: diff --git a/src/git/remotes/azure-devops.ts b/src/git/remotes/azure-devops.ts index 3a3a03f55d0f3..47a881f814511 100644 --- a/src/git/remotes/azure-devops.ts +++ b/src/git/remotes/azure-devops.ts @@ -70,8 +70,10 @@ export class AzureDevOpsRemote extends RemoteProvider { } protected override get issueLinkPattern(): string { - const workUrl = this.baseUrl.replace(gitRegex, '/'); - return `${workUrl}/_workitems/edit/`; + if (isVsts(this.domain)) { + return `${this.protocol}://${this.domain}/_workitems/edit/`; + } + return `${this.protocol}://${this.domain}/${this.owner}/_workitems/edit/`; } private _autolinks: (AutolinkReference | DynamicAutolinkReference)[] | undefined;