Skip to content

Commit a075342

Browse files
committed
only prefix paths with '/' when needed
1 parent 296caf8 commit a075342

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/command/render/render-shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ export async function printBrowsePreviewMessage(
178178
info(`\nPreview server: ${previewURL(host, port, path = "")}`);
179179
info(`\nBrowse at ${url}`, { format: colors.green });
180180
} else if (isVSCodeTerminal() && isVSCodeServer()) {
181+
const sep = path.startsWith("/") ? "" : "/";
181182
const browseUrl = vsCodeServerProxyUri()!.replace("{{port}}", `${port}`) +
182-
path;
183+
sep + path;
183184
info(`\nBrowse at ${browseUrl}`, { format: colors.green });
184185
} else if (isJupyterHubServer()) {
185186
const httpReferrer = `${

0 commit comments

Comments
 (0)