From b824693b0ab34141b977e6e15b529a5b76b06582 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 27 Jul 2023 02:08:06 +0200 Subject: [PATCH] Fix wrong repo url used by badges (#2037) --------- Co-authored-by: 6543 <6543@obermui.de> --- web/src/components/repo/settings/BadgeTab.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/repo/settings/BadgeTab.vue b/web/src/components/repo/settings/BadgeTab.vue index 85b564cf5..b4edced8d 100644 --- a/web/src/components/repo/settings/BadgeTab.vue +++ b/web/src/components/repo/settings/BadgeTab.vue @@ -93,7 +93,9 @@ export default defineComponent({ const badgeUrl = computed( () => `/api/badges/${repo.value.id}/status.svg${branch.value !== '' ? `?branch=${branch.value}` : ''}`, ); - const repoUrl = computed(() => `/${repo.value.id}${branch.value !== '' ? `/branches/${branch.value}` : ''}`); + const repoUrl = computed( + () => `/repos/${repo.value.id}${branch.value !== '' ? `/branches/${encodeURIComponent(branch.value)}` : ''}`, + ); const badgeContent = computed(() => { if (!repo) {