mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (UI) Replace api.
only if it's a subdomain
This commit is contained in:
@@ -226,7 +226,7 @@ function IndexerIndexRow(props: IndexerIndexRowProps) {
|
|||||||
className={styles.externalLink}
|
className={styles.externalLink}
|
||||||
name={icons.EXTERNAL_LINK}
|
name={icons.EXTERNAL_LINK}
|
||||||
title={translate('Website')}
|
title={translate('Website')}
|
||||||
to={baseUrl.replace('api.', '')}
|
to={baseUrl.replace(/(:\/\/)api\./, '$1')}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
@@ -124,7 +124,9 @@ function IndexerInfoModalContent(props: IndexerInfoModalContentProps) {
|
|||||||
{translate('IndexerSite')}
|
{translate('IndexerSite')}
|
||||||
</DescriptionListItemTitle>
|
</DescriptionListItemTitle>
|
||||||
<DescriptionListItemDescription>
|
<DescriptionListItemDescription>
|
||||||
<Link to={baseUrl}>{baseUrl.replace('api.', '')}</Link>
|
<Link to={baseUrl}>
|
||||||
|
{baseUrl.replace(/(:\/\/)api\./, '$1')}
|
||||||
|
</Link>
|
||||||
</DescriptionListItemDescription>
|
</DescriptionListItemDescription>
|
||||||
<DescriptionListItemTitle>{`${
|
<DescriptionListItemTitle>{`${
|
||||||
protocol === 'usenet' ? 'Newznab' : 'Torznab'
|
protocol === 'usenet' ? 'Newznab' : 'Torznab'
|
||||||
|
Reference in New Issue
Block a user