A canonical URL is a tag inserted in the HTML code of a web page that allows you to specify to search engines the preferred URL, that is, the one that shoud be crawled.
When multiple pages have similar content, search engines consider them duplicate versions of the same page. For example, desktop and mobile versions of a product page are often considered duplicates. Search engines select one of the pages as the canonical, or primary, version and crawl that one more. Valid canonical links let you tell search engines which version of a page to crawl and display to users in search results.
Add a <link rel=canonical> element to the <head> of the page :
<!doctype html> <html lang="en"> <head> … <link rel="canonical" href="https://example.com"/> … </head> <body> … </body> </html>Guidelines for Canonical URLs