diff --git a/html/src/components/terminal/index.tsx b/html/src/components/terminal/index.tsx index 1005603..4e31ac3 100644 --- a/html/src/components/terminal/index.tsx +++ b/html/src/components/terminal/index.tsx @@ -35,7 +35,9 @@ export class Terminal extends Component { const options = new URLSearchParams(decodeURIComponent(window.location.search)); this.isDockerType = options.get('type') === 'docker'; - this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${options.get('user')}/${options.get('repo')}`; + // Use repo_owner if available, otherwise fall back to user + const repoOwner = options.get('repo_owner') || options.get('user'); + this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${repoOwner}/${options.get('repo')}`; this.apiParams = new URLSearchParams({ repo: options.get('repoid') as string, user: options.get('userid') as string,