Skip to content

Commit

Permalink
Fix incorrect start workspace url (#18934)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Oct 17, 2023
1 parent 2338184 commit 35d47fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/gitpod-protocol/src/util/gitpod-host-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class GitpodHostUrl {
}

asStart(workspaceId = this.workspaceId): GitpodHostUrl {
return this.withoutWorkspacePrefix().with({
return this.with({
pathname: "/start/",
hash: "#" + workspaceId,
});
Expand Down
2 changes: 1 addition & 1 deletion components/supervisor/frontend/src/shared/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const workspaceUrl = new GitpodHostUrl(window.location.href);

export const serverUrl = workspaceUrl.withoutWorkspacePrefix();

export const startUrl = workspaceUrl.asStart();
export const startUrl = serverUrl.asStart(workspaceUrl.workspaceId);

0 comments on commit 35d47fe

Please sign in to comment.