diff --git a/app/(pages)/projects/[id]/page.tsx b/app/(pages)/projects/[id]/page.tsx index 14f490f..4a84a9e 100644 --- a/app/(pages)/projects/[id]/page.tsx +++ b/app/(pages)/projects/[id]/page.tsx @@ -31,9 +31,7 @@ export async function generateMetadata({ const content = project?.content const imageUrl = - (project?.image ?? "")?.length > 0 - ? `/project-banners/${project?.image}` - : "/share-image.png" + (project?.image ?? "")?.length > 0 ? project.image : "/share-image.png" return { title: project?.name, diff --git a/components/cards/wiki-card.tsx b/components/cards/wiki-card.tsx index 2c5f232..dffe1f2 100644 --- a/components/cards/wiki-card.tsx +++ b/components/cards/wiki-card.tsx @@ -73,9 +73,7 @@ export const WikiCard = ({ project, className = "" }: WikiCardProps) => {
{`${project.name} {
{`${project.name} Project banner image {`${name} ({ id, ...data, - image: normalizeImagePath(data.image, "projects", id), + image: normalizeImagePath(data.image, "project-banners", id), + previousBrandImage: normalizeImagePath( + data.previousBrandImage, + "project-banners", + id + ), content: normalizeContentImagePaths(content, "projects", id), }), })