Skip to content

Commit

Permalink
Add proper canonical to sub-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
PassTheMayo committed Mar 9, 2024
1 parent f7bbae6 commit b970c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/about/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const metadata = {
],
locale: 'en-US',
type: 'website'
},
alternates: {
canonical: '/about'
}
};

Expand Down
3 changes: 3 additions & 0 deletions src/app/docs/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export const metadata = {
],
locale: 'en-US',
type: 'website'
},
alternates: {
canonical: '/docs'
}
};

Expand Down

0 comments on commit b970c8c

Please sign in to comment.