Download & Extend

Enable designation of a canonical path

Project:Persistent URL
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

AttachmentSize
purl-canonical-url.patch1.71 KB

Comments

#1

Subscribing.

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

#2

#3

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.

nobody click here