Skip to content

Commit 479fba3

Browse files
committed
fix site urls convertions
1 parent 4c03272 commit 479fba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/gsc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ export async function checkSiteUrl(accessToken: string, siteUrl: string) {
9292
// Convert the site URL into all possible formats
9393
if (siteUrl.startsWith("https://")) {
9494
formattedUrls.push(siteUrl);
95-
formattedUrls.push(convertToHTTP(siteUrl));
95+
formattedUrls.push(convertToHTTP(siteUrl.replace("https://", "")));
9696
formattedUrls.push(convertToSCDomain(siteUrl));
9797
} else if (siteUrl.startsWith("http://")) {
9898
formattedUrls.push(siteUrl);
99-
formattedUrls.push(convertToHTTPS(siteUrl));
99+
formattedUrls.push(convertToHTTPS(siteUrl.replace("http://", "")));
100100
formattedUrls.push(convertToSCDomain(siteUrl));
101101
} else if (siteUrl.startsWith("sc-domain:")) {
102102
formattedUrls.push(siteUrl);

0 commit comments

Comments
 (0)