• Hi,

    I’m using your plugin for maybe 10 years or something, I don’t really remember and enjoy it a lot.

    Anyway, it’s perfect as long as you don’t have to change any value. I ran into an issue today and had to filter the canonical url.

    So, I added this line :
    $link = apply_filters( ‘su_canonical_url_filter’, $link );

    On line 169, file seo-ultimate/modules/canonical/canonical.php

    Context :
    ###################################################
    //Handle protocol change
    if ($scheme = $this->get_setting(‘canonical_url_scheme’, ‘http’))
    $link = preg_replace(‘@^https?://@’, “$scheme://”, $link);

    $link = apply_filters( ‘su_canonical_url_filter’, $link );

    //Return the canonical URL
    return $link;
    ###################################################

    This enables me to fix some broken links.

    Is it possible to add this in next update? I think it could help some other people. If you have a github, I could push myself this commit (and maybe some more filters).

    Thanks,

    Tanguy

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tanguysauvin

    (@tanguysauvin)

    OK, I added one more here:
    seo-ultimate/modules/opengraph/opengraph.php line 211

    $tags = apply_filters( ‘su_opentags_filter’, $tags );

    Please mention the full issue here. We will take the notes and forward it to our developer. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter canonical urls’ is closed to new replies.