Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi abcfolio,

    The og:url is a copy of the canonical URL.
    If the canonical URL mismatches the page, and leads to something that isn’t presented (e.g. https instead of http), this could cause indexing problems.

    Nevertheless, what do you wish to change about the URL?
    The og:url isn’t too important for canonical indexing, so I’ll think about adding a filter for changing its output.

    2.6.0 (upcoming release) will already contain a few adjustments to the URL creation, including new/broader filters.

    Enjoy your day 🙂

    Thread Starter abcfolio

    (@abcfolio)

    OK. So how do I customize canonical?

    When I provide custom Url to the_seo_framework_output_canonical filter it ignores it. When I echo canonical tag and return false it creates a proper custom tag but it doesn’t customize og_url.

    In case you wonder why I need a custom url, the answer is dynamic pages (page with query parameters).

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi abcfolio,

    The the_seo_framework_output_canonical filter allows you to disable the canonical URL output. This doesn’t affect the og:url output and only uses booleans (true or false).

    In 2.6.0 more filters will be added to support your request, until then I’m afraid I can’t help you. 🙁

    I’ll keep you posted on how and when.

    I hope this clears things up!

    P.S. if this is regarding WPML query parameters for language, it will be automatically be included in 2.6.0 🙂

    Thread Starter abcfolio

    (@abcfolio)

    That is OK. I’ve already added a the_seo_framework_ogurl_output filter to og_url. Works great so I can wait for an update.

    Speaking of update. Is it possible to modify the_seo_framework_output_canonical filter to accept boolean or url string? This way I would not to have run the og_url filter.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi abcfolio,

    It’s good to see you know your way around PHP, awesome!

    It will be another filter, my goal with 2.6.0 is to generalize everything, including filters like the one you proposed :).

    Stay tuned!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘og:url filter missing’ is closed to new replies.