fix: add trailing slash to workspace API URLs

FastAPI auto-redirects /workspaces to /workspaces/ with 307.
Behind Traefik (HTTP internal), the 307 becomes http://,
triggering Mixed Content in the browser. Adding trailing
slashes avoids the redirect entirely.
This commit is contained in:
2026-06-01 00:03:33 +02:00
parent a5d64d1859
commit b05de96569
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import type {
function workspaceUrl(projectId: string, repoId: string, workspaceId?: string) {
const base = `/projects/${projectId}/repositories/${repoId}/workspaces`;
return workspaceId ? `${base}/${workspaceId}` : base;
return workspaceId ? `${base}/${workspaceId}/` : `${base}/`;
}
export async function listWorkspaces(