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.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | canonical-formatter-2153577-7.patch | 561 bytes | mexicoder |
#6 | canonical-formatter-2153577-6.patch | 4.64 KB | mexicoder |
#4 | canonical-formatter-2153577-4.patch | 4.64 KB | mexicoder |
#3 | canonical-formatter-2153577-2.patch | 4.63 KB | mexicoder |
#1 | canonical-formatter-2153577-1.patch | 4.62 KB | mexicoder |
Comments
Comment #1
mexicoder CreditAttribution: mexicoder commentedThis 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.
Comment #2
mexicoder CreditAttribution: mexicoder commentedSame patch as #1 but against 7.x-2.7
Comment #3
mexicoder CreditAttribution: mexicoder commentedPatched against 2.7
Comment #4
mexicoder CreditAttribution: mexicoder commentedCorrected check in code
Comment #5
mexicoder CreditAttribution: mexicoder commentedComment #6
mexicoder CreditAttribution: mexicoder commentedRemoved blank space from file
Comment #7
sandykadam CreditAttribution: sandykadam commented@mexicoder Tested the canonical field and now it's returning exact formatter of link. Looks fine now, we can move the patch to module.
Comment #8
valthebaldComment #10
mexicoder CreditAttribution: mexicoder commentedUpdated hook_update number as previous patch was against 2.7
Comment #11
mexicoder CreditAttribution: mexicoder commentedComment #12
valthebaldCommitted to 7.x-2.x and pushed. Thanks @mexicoder!