File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,8 @@ export const createAppLinkHref = (
29
29
}
30
30
31
31
if ( appsHost && app . subdomain && app . subdomain_name ) {
32
- const baseUrl = `${ protocol } //${ appsHost } ` ;
32
+ const baseUrl = `${ protocol } //${ appsHost . replace ( "*" , app . subdomain_name ) } ` ;
33
33
const url = new URL ( baseUrl ) ;
34
- url . hostname = appsHost . replace ( "*" , app . subdomain_name ) ;
35
34
url . pathname = "/" ;
36
35
37
36
href = url . toString ( ) ;
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ export const portForwardURL = (
13
13
14
14
const subdomain = `${ port } ${ suffix } --${ agentName } --${ workspaceName } --${ username } ` ;
15
15
16
- const baseUrl = `${ location . protocol } //${ host } ` ;
16
+ const baseUrl = `${ location . protocol } //${ host . replace ( "*" , subdomain ) } ` ;
17
17
const url = new URL ( baseUrl ) ;
18
- url . hostname = host . replace ( "*" , subdomain ) ;
19
18
20
19
return url . toString ( ) ;
21
20
} ;
You can’t perform that action at this time.
0 commit comments