Skip to content

Commit

Permalink
chore: update canonical links
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed May 31, 2024
1 parent 5fb1e9f commit 16e7c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ const ResourcePage: NextPage = () => {
<>
<PageContainer
title={`${data?.name ? data?.name : isLoading ? '' : 'Resource'}`}
metaCanonical={`${process.env.NEXT_PUBLIC_BASE_URL}/resources?id=${id}`}
metaCanonical={`${process.env.NEXT_PUBLIC_BASE_URL}/resources?id=${
Array.isArray(id) ? id[0].toLowerCase() : id?.toLowerCase()
}`}
metaDescription='NDE Discovery Portal - Detailed resource information.'
>
<PageContent>
Expand Down

0 comments on commit 16e7c67

Please sign in to comment.