Skip to content

Commit 94e37e6

Browse files
authored
fix: 🐛 gitpodify url ignores search params (#53)
While gitpodify a url, search params are getting ignored. Bitbucket uses search params `at` as the branch name. When gitpodify such url, it leads to incorrect context parsing and open workspace in invalid state. close #7922
1 parent f57fb1f commit 94e37e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Gitpod - Always ready to code",
44
"short_name": "Gitpod",
5-
"version": "1.11",
5+
"version": "1.12",
66
"description": "Spin up fresh, automated dev environments for each task, in the cloud, in seconds.",
77
"icons": {
88
"16": "icons/gitpod-logo-16.png",

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function renderGitpodUrl(gitpodURL: string): string {
22
const baseURL = `${window.location.protocol}//${window.location.host}`;
3-
return `${gitpodURL}/#${baseURL}` + window.location.pathname;
3+
return `${gitpodURL}/#${baseURL}` + window.location.pathname + window.location.search;
44
}
55

66
export function makeOpenInPopup(a: HTMLAnchorElement): void {

0 commit comments

Comments
 (0)