I'm currently maintaining a lot of different sites containing the same information pages (example: profile pages with the same content but on different sites/base URL) and I'd like to consolidate this into a single URL housing all the profile pages. However, the first phase of this task was to develop a way to automate a rel=canonical metadata tag on creation of a node.

What would be the best way to meet this requirement? Is there a hook I can use?

  • 3
    Install the Meta Tag module. It will set global defaults for entities, and also allow you to override that per item from their respective forms. – Kevin May 21 '19 at 21:28
  • 1
    drupal.org/project/metatag – leymannx May 22 '19 at 10:31
  • Thanks guys! I appreciate this greatly! – Daniel May 22 '19 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.