Fixed: (UI) Replace api. only if it's a subdomain

This commit is contained in:
Bogdan
2023-02-27 15:16:51 +02:00
parent db84e82779
commit 65a954b831
2 changed files with 4 additions and 2 deletions
@@ -226,7 +226,7 @@ function IndexerIndexRow(props: IndexerIndexRowProps) {
className={styles.externalLink}
name={icons.EXTERNAL_LINK}
title={translate('Website')}
to={baseUrl.replace('api.', '')}
to={baseUrl.replace(/(:\/\/)api\./, '$1')}
/>
) : null}