| skipped 188 lines |
189 | 189 | | if (( is_issue )); then |
190 | 190 | | # Switch to workitems, provide work item id if specified |
191 | 191 | | urlpath="${urlpath%%/_git/*}/_workitems" |
| 192 | + | # Handle case for the default repository url |
| 193 | + | urlpath="${urlpath#_git\/*}" |
192 | 194 | | providerBranchRef="?id=${branch//[^0-9]/}" |
193 | 195 | | else |
194 | 196 | | # Keep project and repository name, append branch selector. |
| skipped 38 lines |