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

Commite59b086

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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎site/src/utils/apps.ts‎

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

3131
if(appsHost&&app.subdomain&&app.subdomain_name){
32-
constbaseUrl=`${protocol}//${appsHost}`;
32+
constupdatedHost=appsHost.replace("*",app.subdomain_name);
33+
constbaseUrl=`${protocol}//${updatedHost}`;
3334
consturl=newURL(baseUrl);
34-
url.hostname=appsHost.replace("*",app.subdomain_name);
3535
url.pathname="/";
3636

3737
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