Skip to content

feat: link with protocol on shared ports #12908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2024
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
Next Next commit
make fmt
  • Loading branch information
f0ssel committed Apr 9, 2024
commit 885bc329cb16caba623be4e6c88e5ad6cb64b55a
4 changes: 1 addition & 3 deletions site/src/utils/portForward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const portForwardURL = (
const { location } = window;
const suffix = https ? "s" : "";

const subdomain = `${port
}${suffix}--${agentName}--${workspaceName}--${username}`;
const subdomain = `${port}${suffix}--${agentName}--${workspaceName}--${username}`;
return `${location.protocol}//${host}`.replace("*", subdomain);
};

Expand Down Expand Up @@ -54,7 +53,6 @@ export const openMaybePortForwardedURL = (
portForwardURL(
proxyHost,
parseInt(url.port),

agentName,
workspaceName,
username,
Expand Down