Skip to content

Commit

Permalink
Fix badge's repoUrl with rootpath (#3076)
Browse files Browse the repository at this point in the history
Fix #3032 again.
  • Loading branch information
andyhan authored Dec 30, 2023
1 parent 41819da commit f100a21
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 f100a21

Please sign in to comment.