Canonical links should use the link formatter provided as default to ensure the link is formed correctly and the default Drupal canonical link is replaced.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mexicoder’s picture

This patch should apply the formatter defined for canonical link in known_tags.inc. All new attached fields will include this. Run update to update all previous tags to use the defined formatter.

mexicoder’s picture

Same patch as #1 but against 7.x-2.7

mexicoder’s picture

Patched against 2.7

mexicoder’s picture

Corrected check in code

mexicoder’s picture

Status: Active » Needs review
mexicoder’s picture

Removed blank space from file

sandykadam’s picture

Status: Needs review » Reviewed & tested by the community

@mexicoder Tested the canonical field and now it's returning exact formatter of link. Looks fine now, we can move the patch to module.

valthebald’s picture

Version: 7.x-2.7 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mexicoder’s picture

Updated hook_update number as previous patch was against 2.7

mexicoder’s picture

Status: Closed (fixed) » Needs review
valthebald’s picture

Status: Needs review » Fixed

Committed to 7.x-2.x and pushed. Thanks @mexicoder!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.