mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Fix wrong repo url used by badges (#2037)
--------- Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
1da0ad38a8
commit
b824693b0a
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ export default defineComponent({
|
||||||
const badgeUrl = computed(
|
const badgeUrl = computed(
|
||||||
() => `/api/badges/${repo.value.id}/status.svg${branch.value !== '' ? `?branch=${branch.value}` : ''}`,
|
() => `/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(() => {
|
const badgeContent = computed(() => {
|
||||||
if (!repo) {
|
if (!repo) {
|
||||||
|
|
Loading…
Reference in a new issue