Change og:url for second language

#75068
  • Resolved mochkal
    Rank Math free

    Hey guys,
    how is it possible to change toe og:url for a second language to url.com/de ?
    I am using polylang.
    Any ideas?

    Thanks a lot.

    Regards
    Manuel

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can customize the following filter to fit your needs.

    
    /**
     * Allows the output of the canonical URL as OpenGraph URL, consolidating likes and shares.
     *
     * @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
     * @param $url Canonical URL
     */
    add_filter( 'rank_math/opengraph/url', function( $url ) {
    	return $url;
    });
    

    Hope that helps. Please do not hesitate to let us know if you need our assistance with anything else.

    Appreciate thanks

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Change og:url for second language’ is closed to new replies.