diff --git a/client/templates/Castform/widgets/Section.tsx b/client/templates/Castform/widgets/Section.tsx index 3f7a195e..3d8a524d 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={addHttp(url)}> {url} )} diff --git a/client/templates/Gengar/widgets/Section.tsx b/client/templates/Gengar/widgets/Section.tsx index 8a825bfa..6d74ed4b 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={addHttp(url)}> {url} )} diff --git a/client/templates/Glalie/widgets/Section.tsx b/client/templates/Glalie/widgets/Section.tsx index 396c06d5..3365dfdf 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={addHttp(url)}> {url} )} diff --git a/client/templates/Kakuna/widgets/Section.tsx b/client/templates/Kakuna/widgets/Section.tsx index 98d5869a..d0ebc363 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..00472af1 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={addHttp(url)} className="text-xs"> {url} )} diff --git a/client/templates/Pikachu/widgets/Section.tsx b/client/templates/Pikachu/widgets/Section.tsx index 3eb9df01..33e785f9 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={addHttp(url)}> {url} )}