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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user