-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add canonical link setup #266
Conversation
|
Co-authored-by: Helder Oliveira <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments and internal discussion
Thank you 🫡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobySolutions make sure to manually test it.
Sure thing!! 🙌 |
## Why? This pull request automates the addition of the canonical meta tag to every page within the website using the `<link/>` tag. ## How? - For the docs pages, make sure the slugs passed down to the layout code to ensure appropriation of the URLs. - Used the custom function ` generateCanonicalUrl(baseUrl: string, slug?: string)` to handle canonical URLs for the base layouts ## Tickets? - [Self-referencing Canonical tags](https://linear.app/fleekxyz/issue/MKTG-234/self-referencing-canonical-tags) ## Contribution checklist? - [x] The commit messages are detailed - [x] The `build` command runs locally - [x] Assets or static content are linked and stored in the project - [x] Document filename is named after the slug - [x] You've reviewed spelling using a grammar checker - [x] For documentation, guides or references, you've tested the commands and steps - [x] You've done enough research before writing ## Security checklist? - [x] Sensitive data has been identified and is being protected properly - [x] Injection has been prevented (parameterized queries, no eval or system calls) - [x] The Components are escaping output (to prevent XSS) --------- Co-authored-by: Helder Oliveira <[email protected]>
Why?
This pull request automates the addition of the canonical meta tag to every page within the website using the
<link/>
tag.How?
generateCanonicalUrl(baseUrl: string, slug?: string)
to handle canonical URLs for the base layoutsTickets?
Contribution checklist?
build
command runs locallySecurity checklist?