diff --git a/client/templates/Castform/widgets/Section.tsx b/client/templates/Castform/widgets/Section.tsx index 3f7a195e..da721a6b 100644 --- a/client/templates/Castform/widgets/Section.tsx +++ b/client/templates/Castform/widgets/Section.tsx @@ -9,7 +9,7 @@ import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import DataDisplay from '@/templates/shared/DataDisplay'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import Heading from './Heading'; @@ -86,7 +86,7 @@ const Section: React.FC = ({ {summary && {summary}} {url && ( - } link={url}> + } link={url && addHttp(url)}> {url} )} diff --git a/client/templates/Gengar/widgets/Section.tsx b/client/templates/Gengar/widgets/Section.tsx index 8a825bfa..80aafa3d 100644 --- a/client/templates/Gengar/widgets/Section.tsx +++ b/client/templates/Gengar/widgets/Section.tsx @@ -9,7 +9,7 @@ import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import DataDisplay from '@/templates/shared/DataDisplay'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import Heading from './Heading'; @@ -87,7 +87,7 @@ const Section: React.FC = ({ {summary && {summary}} {url && ( - } link={url}> + } link={url && addHttp(url)}> {url} )} diff --git a/client/templates/Glalie/widgets/Section.tsx b/client/templates/Glalie/widgets/Section.tsx index 396c06d5..536079fc 100644 --- a/client/templates/Glalie/widgets/Section.tsx +++ b/client/templates/Glalie/widgets/Section.tsx @@ -9,7 +9,7 @@ import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import DataDisplay from '@/templates/shared/DataDisplay'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import BadgeDisplay from './BadgeDisplay'; import Heading from './Heading'; @@ -80,7 +80,7 @@ const Section: React.FC = ({ {summary && {summary}} {url && ( - } link={url}> + } link={url && addHttp(url)}> {url} )} diff --git a/client/templates/Kakuna/widgets/Section.tsx b/client/templates/Kakuna/widgets/Section.tsx index 98d5869a..032ff65e 100644 --- a/client/templates/Kakuna/widgets/Section.tsx +++ b/client/templates/Kakuna/widgets/Section.tsx @@ -8,7 +8,7 @@ import Markdown from '@/components/shared/Markdown'; import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import BadgeDisplay from './BadgeDisplay'; import Heading from './Heading'; @@ -84,7 +84,7 @@ const Section: React.FC = ({ {url && ( diff --git a/client/templates/Onyx/widgets/Section.tsx b/client/templates/Onyx/widgets/Section.tsx index 830bd57a..2603cc37 100644 --- a/client/templates/Onyx/widgets/Section.tsx +++ b/client/templates/Onyx/widgets/Section.tsx @@ -9,7 +9,7 @@ import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import DataDisplay from '@/templates/shared/DataDisplay'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import Heading from './Heading'; @@ -87,7 +87,7 @@ const Section: React.FC = ({ {summary && {summary}} {url && ( - } link={url} className="text-xs"> + } link={url && addHttp(url)} className="text-xs"> {url} )} diff --git a/client/templates/Pikachu/widgets/Section.tsx b/client/templates/Pikachu/widgets/Section.tsx index 3eb9df01..bba62849 100644 --- a/client/templates/Pikachu/widgets/Section.tsx +++ b/client/templates/Pikachu/widgets/Section.tsx @@ -9,7 +9,7 @@ import { useAppSelector } from '@/store/hooks'; import { SectionProps } from '@/templates/sectionMap'; import DataDisplay from '@/templates/shared/DataDisplay'; import { formatDateString } from '@/utils/date'; -import { parseListItemPath } from '@/utils/template'; +import { addHttp, parseListItemPath } from '@/utils/template'; import Heading from './Heading'; @@ -79,7 +79,7 @@ const Section: React.FC = ({ {summary && {summary}} {url && ( - } link={url}> + } link={url && addHttp(url)}> {url} )}