Ensure photo title links direct to canonical path

This commit is contained in:
Sam Becker 2023-10-03 16:52:14 -05:00
parent bb701d1645
commit 52ef3ecc5b
3 changed files with 3 additions and 11 deletions

View File

@ -82,10 +82,6 @@ export default async function PhotoCameraPage({
return <>
{children}
<PhotoDetailPage
photo={photo}
photos={photos}
camera={camera}
/>
<PhotoDetailPage {...{ photo, photos, camera }} />
</>;
}

View File

@ -74,10 +74,6 @@ export default async function PhotoTagPage({
return <>
{children}
<PhotoDetailPage
photo={photo}
photos={photos}
tag={tag}
/>
<PhotoDetailPage {...{ photo, photos, tag }} />
</>;
}

View File

@ -64,7 +64,7 @@ export default function PhotoLarge({
{renderMiniGrid(<>
<div>
<Link
href={pathForPhoto(photo, tag)}
href={pathForPhoto(photo)}
className="font-bold uppercase"
>
{titleForPhoto(photo)}