Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
i can spel gud
  • Loading branch information
johnstcn committed Mar 21, 2025
commit 5e7fc661d7b66b4bd7682789b016da28f46ade17
2 changes: 1 addition & 1 deletion cli/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func buildAppLinkURL(baseURL *url.URL, workspace codersdk.Workspace, agent coder

// replacePlaceholderExternalSessionTokenString replaces any $SESSION_TOKEN
// strings in the URL with the actual session token.
// This is consistent behaviour with the frontend. See: site/src/modules/resources/AppLink/AppLink.tsx
// This is consistent behavior with the frontend. See: site/src/modules/resources/AppLink/AppLink.tsx
func replacePlaceholderExternalSessionTokenString(client *codersdk.Client, appURL string) string {
if !strings.Contains(appURL, "$SESSION_TOKEN") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only supported format? Not e.g. ${SESSION_TOKEN}?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it's just const magicTokenString = "$SESSION_TOKEN";

return appURL
Expand Down
Loading