Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd8ec8c

Browse files
committed
fix(site): avoid constructing invalid apps url
1 parent3014713 commitbd8ec8c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎site/src/utils/apps.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export const createAppLinkHref = (
2929
}
3030

3131
if(appsHost&&app.subdomain&&app.subdomain_name){
32-
constbaseUrl=`${protocol}//${appsHost}`;
32+
constbaseUrl=`${protocol}//${appsHost.replace("*",app.subdomain_name)}`;
3333
consturl=newURL(baseUrl);
34-
url.hostname=appsHost.replace("*",app.subdomain_name);
3534
url.pathname="/";
3635

3736
href=url.toString();

‎site/src/utils/portForward.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export const portForwardURL = (
1313

1414
constsubdomain=`${port}${suffix}--${agentName}--${workspaceName}--${username}`;
1515

16-
constbaseUrl=`${location.protocol}//${host}`;
16+
constbaseUrl=`${location.protocol}//${host.replace("*",subdomain)}`;
1717
consturl=newURL(baseUrl);
18-
url.hostname=host.replace("*",subdomain);
1918

2019
returnurl.toString();
2120
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp