I'm working on a patch for Spaces to allow a node to be part of multiple spaces. If that's the case, a PURL may be part of a set in which one is canonical, and there's a need to designate that canonical URL to e.g. avoid duplicate content issues. Attached small patch enables this. Doing this in hook_preprocess_page() partly to avoid conflict with nodewords, which can be used to add a canonical URL.

CommentFileSizeAuthor
purl-canonical-url.patch1.71 KBnedjo

Comments

kyle_mathews’s picture

Subscribing.

Have you created an issue yet for the node to multiple spaces patch?

nedjo’s picture

johngriffin’s picture

This patch applied fine for me with the latest release of PURL and works great with the patch over at:
#828416: Enable multiple spaces per item--spaces_taxonomy implementation.