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

This commit is contained in:
Bogdan
2023-02-21 15:10:50 +02:00
parent 95497480a2
commit 4ad992f76a

View File

@@ -253,7 +253,7 @@ class IndexerIndexRow extends Component {
className={styles.externalLink}
name={icons.EXTERNAL_LINK}
title={translate('Website')}
to={baseUrl.replace('api.', '')}
to={baseUrl.replace(/(:\/\/)api\./, '$1')}
/> : null
}