mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
Fix Wrong badgeUrl repo badge tab when rootPath is not empty (#3033)
Fix #3032
This commit is contained in:
parent
e575ffe72d
commit
8c4480f281
@ -84,9 +84,10 @@ async function loadBranches() {
|
||||
|
||||
const baseUrl = `${window.location.protocol}//${window.location.hostname}${
|
||||
window.location.port ? `:${window.location.port}` : ''
|
||||
}${useConfig().rootPath}`;
|
||||
}`;
|
||||
const { rootPath } = useConfig();
|
||||
const badgeUrl = computed(
|
||||
() => `/api/badges/${repo.value.id}/status.svg${branch.value !== '' ? `?branch=${branch.value}` : ''}`,
|
||||
() => `${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)}` : ''}`,
|
||||
|
Loading…
Reference in New Issue
Block a user