Skip to content

Commit

Permalink
Fix badge's repoUrl with rootpath (woodpecker-ci#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyhan authored and fernandrone committed Feb 1, 2024
1 parent beeb266 commit c38c1f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/repo/settings/BadgeTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ const badgeUrl = computed(
() => `${rootPath}/api/badges/${repo.value.id}/status.svg${branch.value !== '' ? `?branch=${branch.value}` : ''}`,
);
const repoUrl = computed(
() => `/repos/${repo.value.id}${branch.value !== '' ? `/branches/${encodeURIComponent(branch.value)}` : ''}`,
() =>
`${rootPath}/repos/${repo.value.id}${branch.value !== '' ? `/branches/${encodeURIComponent(branch.value)}` : ''}`,
);
const badgeContent = computed(() => {
Expand Down

0 comments on commit c38c1f4

Please sign in to comment.