Skip to content

Commit 3a07173

Browse files
committed
Align the url structure of the vscode-web module with the code-server module
1 parent f50197a commit 3a07173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-web/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ resource "coder_app" "vscode-web" {
8585
agent_id = var.agent_id
8686
slug = var.slug
8787
display_name = var.display_name
88-
url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}"
88+
url = "http://localhost:${var.port}/${var.folder != "" ? "?folder=${urlencode(var.folder)}" : ""}"
8989
icon = "/icon/code.svg"
9090
subdomain = true
9191
share = var.share

0 commit comments

Comments
 (0)