Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Fix Work Experience Website Link redirects to 404 if entered without http or https

Aadhar Chandiwalac28afbc75db5
diff --git a/client/templates/Castform/widgets/Section.tsx b/client/templates/Castform/widgets/Section.tsx
index 3f7a195ec..da721a6b4 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<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url}>
+ <DataDisplay icon={<Link />} link={url && addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Gengar/widgets/Section.tsx b/client/templates/Gengar/widgets/Section.tsx
index 8a825bfa0..80aafa3dd 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<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url}>
+ <DataDisplay icon={<Link />} link={url && addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Glalie/widgets/Section.tsx b/client/templates/Glalie/widgets/Section.tsx
index 396c06d52..536079fca 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<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url}>
+ <DataDisplay icon={<Link />} link={url && addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Kakuna/widgets/Section.tsx b/client/templates/Kakuna/widgets/Section.tsx
index 98d5869a6..032ff65e0 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<SectionProps> = ({
{url && (
<div className="inline-flex justify-center">
- <a href={url} target="_blank" rel="noreferrer">
+ <a href={url && addHttp(url)} target="_blank" rel="noreferrer">
{url}
</a>
</div>
diff --git a/client/templates/Onyx/widgets/Section.tsx b/client/templates/Onyx/widgets/Section.tsx
index 830bd57a6..2603cc37c 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<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url} className="text-xs">
+ <DataDisplay icon={<Link />} link={url && addHttp(url)} className="text-xs">
{url}
</DataDisplay>
)}
diff --git a/client/templates/Pikachu/widgets/Section.tsx b/client/templates/Pikachu/widgets/Section.tsx
index 3eb9df014..bba628493 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<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url}>
+ <DataDisplay icon={<Link />} link={url && addHttp(url)}>
{url}
</DataDisplay>
)}