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 69c6a6a commit 748887bCopy full SHA for 748887b
src/utils.ts
@@ -1,6 +1,7 @@
1
export function renderGitpodUrl(gitpodURL: string): string {
2
const baseURL = `${window.location.protocol}//${window.location.host}`;
3
- return `${gitpodURL}/#${baseURL}` + window.location.pathname + window.location.search;
+ const trimmedUrl = gitpodURL.replace(/[\/]+$/g, '');
4
+ return `${trimmedUrl}/#${baseURL}` + window.location.pathname + window.location.search;
5
}
6
7
export function isVisible(el: HTMLElement) {
0 commit comments