Skip to content

Add Canonical Link #21

@Bana0615

Description

@Bana0615

Ticket: [Feature] Add Canonical Link

Description:
This ticket proposes adding a canonical link to the <head> of all relevant pages within our Next.js project. A canonical link helps search engines understand the preferred version of a URL when multiple URLs exist with similar content, thus preventing duplicate content issues and consolidating link equity.

Acceptance Criteria:

  • A next/head component (or equivalent) is used to dynamically add the canonical link to each page.
  • The href attribute of the canonical link correctly reflects the absolute, canonical URL of the current page.
  • The implementation accounts for different environments (development, staging, production) to ensure correct URLs are generated.
  • The canonical link is present on all public-facing, indexable pages where duplicate content might be an issue (e.g., product pages, blog posts, main content pages).
  • The solution is tested to ensure it doesn't negatively impact client-side routing or initial page load performance.

Labels: feature, seo, nextjs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions