| skipped 136 lines |
137 | 137 | | if (( is_issue )); then |
138 | 138 | | # Switch to workitems, provide work item id if specified |
139 | 139 | | urlpath="${urlpath%%/_git/*}/_workitems" |
140 | | - | urlpath="${urlpath/_git\//}" |
| 140 | + | # Handle case for the default repository url |
| 141 | + | urlpath="${urlpath#_git\/*}" |
141 | 142 | | providerBranchRef="?id=${branch//[^0-9]/}" |
142 | 143 | | else |
143 | 144 | | # Keep project and repository name, append branch selector. |
| skipped 36 lines |