Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While working with domain module to implement multi-domain sites, we have faced an issue with canonical url which shows relative paths instead of absolute path. I think domain_source module can handle the issue with canonical by referring source domain as canonical for all nodes (if available), and for all other pages default domain can be set as canonical.
Is it good to patch the domain_source module or implement a sub-module for the domain access module, which does the same?
Comments
Comment #1
deepakrmklm CreditAttribution: deepakrmklm at Zyxware Technologies commentedComment #2
deepakrmklm CreditAttribution: deepakrmklm at Zyxware Technologies commentedComment #3
agentrickardI don't understand the request here. Perhaps something has changed, but earlier versions of Drupal 7 just handled this properly.
Comment #4
agentrickardThis should work correctly when either a) Domain Source module is enabled; b) SEO optimization is turned to 'Rewrite all URLs to point to a single source.'
The process by which URLs are pointed to a canonical source marks them as 'absolute' URLs, which is picked up by the canonical tag.