Use remote_url for external links

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
entity-store^2^2
marcin mikołajczak 2022-11-30 11:16:42 +01:00
rodzic ee389e523d
commit 1de5a69f8b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -121,8 +121,8 @@ const EventInformation: React.FC<IEventInformation> = ({ params }) => {
{status.event.links.map(link => (
<HStack space={2} alignItems='center'>
<Icon src={require('@tabler/icons/link.svg')} />
<a href={link.url} className='text-primary-600 dark:text-accent-blue hover:underline' target='_blank'>
{link.url.replace(/^https?:\/\//, '')}
<a href={link.remote_url} className='text-primary-600 dark:text-accent-blue hover:underline' target='_blank'>
{link.remote_url.replace(/^https?:\/\//, '')}
</a>
</HStack>
))}