We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd2d09 commit e0c4d8dCopy full SHA for e0c4d8d
src/command/render/render-shared.ts
@@ -178,7 +178,11 @@ export async function printBrowsePreviewMessage(
178
info(`\nPreview server: ${previewURL(host, port, path = "")}`);
179
info(`\nBrowse at ${url}`, { format: colors.green });
180
} else if (isVSCodeTerminal() && isVSCodeServer()) {
181
- const sep = path.startsWith("/") ? "" : "/";
+ if (vsCodeServerProxyUri().endsWith("/")) {
182
+ path = path.startsWith("/") ? path.slice(1) : path;
183
+ } else {
184
+ path = path.startsWith("/") ? path : "/" + path;
185
+ }
186
const browseUrl = vsCodeServerProxyUri()!.replace("{{port}}", `${port}`) +
187
sep + path;
188
info(`\nBrowse at ${browseUrl}`, { format: colors.green });
0 commit comments