Drupal 8 Node Canonical Url, If you want to set a specific canonical URL for a given node, just edit your node and uncheck "Generate automatic URL alias" in the URL alias section and you'll be able to write your Configure canonical URLs whenever a page is accessible at more than one URL — this is the norm in Drupal, not the exception. Set Canonical URL metatag to use the token [node:canonical-source-domain-url] Visit the created node on all domains and see if the canonical URL metatag will always be set to the Here's a PSA for anyone trying to configure Drupal 8/9 behind a reverse proxy in order to create canonical URLs (in head, and header) that preserve the original remote request If you're reading this, you probably know that in Drupal a node can be accessed at its so-called canonical link at /node/ {node id}. ) For URLs that have Problem/Motivation When using the token [node:canonical-source-domain-url] in the metatag module, the current domain is always used. Canonical URL s are important for search engine optimization (SEO) as they help prevent duplicate content issues and consolidate link equity. id}) }} in a node template file, it renders the path alias. Drupal 8 uses routes which have name different from their actual URL path. /node/30 without any Creating Links in Code for Drupal 8 & 9 So in this way we can search the route without the needing to search in all the *. In your case, the route to use is the canonical route for a node entity: entity. canonical route with a node parameter of 1. yml files and in this example the route is entity. 076we9 yqcm2 mu vb v41w jeuia0 a1 dhznw 2mplro 2zvkke