@@ -108,7 +108,7 @@ const sfc = {
108
108
return this .items .filter ((item ) => item .name .toLowerCase () === this .searchTerm .toLowerCase ()).length === 0 ;
109
109
},
110
110
formActionUrl () {
111
- return ` ${ this .repoLink } /branches/_new/${ pathEscapeSegments ( this .branchNameSubURL ) } ` ;
111
+ return ` ${ this .repoLink } /branches/_new/${ this .branchNameSubURL } ` ;
112
112
},
113
113
},
114
114
@@ -274,15 +274,15 @@ export function initRepoBranchTagSelector(selector) {
274
274
275
275
if (data .showBranchesInDropdown && data .branches ) {
276
276
for (const branch of data .branches ) {
277
- data .items .push ({name: branch, url: branch, branch: true , tag: false , selected: branch === data .defaultBranch });
277
+ data .items .push ({name: branch, url: pathEscapeSegments ( branch) , branch: true , tag: false , selected: branch === data .defaultBranch });
278
278
}
279
279
}
280
280
if (! data .noTag && data .tags ) {
281
281
for (const tag of data .tags ) {
282
282
if (data .release ) {
283
- data .items .push ({name: tag, url: tag, branch: false , tag: true , selected: tag === data .release .tagName });
283
+ data .items .push ({name: tag, url: pathEscapeSegments ( tag) , branch: false , tag: true , selected: tag === data .release .tagName });
284
284
} else {
285
- data .items .push ({name: tag, url: tag, branch: false , tag: true , selected: tag === data .defaultBranch });
285
+ data .items .push ({name: tag, url: pathEscapeSegments ( tag) , branch: false , tag: true , selected: tag === data .defaultBranch });
286
286
}
287
287
}
288
288
}
0 commit comments