Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf0132b5

Browse files
authored
fix: fix workspace proxy command app link href (#11423)
* fix: workspace proxy command app link href
1 parent46b90ce commitf0132b5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎site/src/utils/apps.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe("create app link", () => {
5959
},
6060
);
6161
expect(href).toBe(
62-
"/path-base/@username/Test-Workspace.a-workspace-agent/terminal?command=ls%20-la",
62+
"/@username/Test-Workspace.a-workspace-agent/terminal?command=ls%20-la",
6363
);
6464
});
6565

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp