Skip to content

Commit 2ca2b35

Browse files
committed
fix: workspace proxy command app link href
1 parent c6366e5 commit 2ca2b35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/utils/apps.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export const createAppLinkHref = (
2020
agent.name
2121
}/apps/${encodeURIComponent(appSlug)}/`;
2222
if (app.command) {
23-
href = `${preferredPathBase}/@${username}/${workspace.name}.${
23+
// Terminal links are relative. The terminal page knows how
24+
// to select the correct workspace proxy for the websocket
25+
// connection.
26+
href = `/@${username}/${workspace.name}.${
2427
agent.name
2528
}/terminal?command=${encodeURIComponent(app.command)}`;
2629
}

0 commit comments

Comments
 (0)