Concept Flow - Canonical URLs
Page Request Received
Check if Canonical URL is set
Yes | No
Add <link rel="canonical"> tag
Render Page with Canonical URL
Browser & Search Engines read canonical tag
Search engines use canonical URL for indexing
When a page is requested, Next.js checks if a canonical URL is set. If yes, it adds a <link rel="canonical"> tag in the page head. This helps browsers and search engines know the preferred URL for the content.