mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(cli): use app slug instead of raw command in terminal URLs (#24827)
This commit is contained in:
@@ -114,9 +114,10 @@ func Test_buildAppLinkURL(t *testing.T) {
|
||||
Name: "a-workspace-agent",
|
||||
},
|
||||
app: codersdk.WorkspaceApp{
|
||||
Slug: "my-terminal",
|
||||
Command: "ls -la",
|
||||
},
|
||||
expectedLink: "https://coder.tld/@username/Test-Workspace.a-workspace-agent/terminal?command=ls%20-la",
|
||||
expectedLink: "https://coder.tld/@username/Test-Workspace.a-workspace-agent/terminal?app=my-terminal",
|
||||
},
|
||||
{
|
||||
name: "with subdomain",
|
||||
|
||||
Reference in New Issue
Block a user