loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix escape problems in the branch selector (#25875)

Fix #25865

authored by

yp05327 and committed by
GitHub
d57e55cd e89adec2

+4 -4
+4 -4
web_src/js/components/RepoBranchTagSelector.vue
··· 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 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 }