Skip to content

Commit

Permalink
ar(fix) bug https
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 5, 2024
1 parent 2e2afaf commit 4e178ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/atoms/01_Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const HButton = function ({
return link?.replace('http://', 'web+dreampip://');
}
if (link.startsWith('/')) {
return `web+dreampip://${host}${link}`;
return `web+dreampip://${host.replace('https://', '').replace('http://', '')}${link}`;
}
return link;
};
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/03_Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const HLink = function ({
return link?.replace('http://', 'web+dreampip://');
}
if (link.startsWith('/')) {
return `web+dreampip://${host}${link}`;
return `web+dreampip://${host.replace('https://', '').replace('http://', '')}${link}`;
}
return link;
},
Expand Down

0 comments on commit 4e178ae

Please sign in to comment.