Support » Plugin: Complete Open Graph » Facebook sharing URL not showing special characters ( diacritics, breve)

  • Hi!

    I have a problem related to sharing a post from my blog to Facebook.

    My URL should look like this actually:
    sprânceanaluidostoievski.ro

    The character with a breve is : â. But when I share a post I want the link displayed in Facebook to contain sprânceanaluidostoievski.ro and not xn--sprnceanaluidostoievski-k6b.ro.
    How can I do that?

    I tried already to edit the functions.php on the Theme Editor with the following:

    function ow_ogurl_yoast_filter( $ogurl ){
    return str_replace( ‘xn--sprnceanaluidostoievski-k6b’, ‘sprânceanaluidostoievski’, $ogurl );
    }

    But somehow it does not work :(. I need help and suggestions

    With the Facebook debugger option I can see:
    <!– Open Graph data is managed by Alex MacArthur’s Complete Open Graph plugin. (v3.4.5) –><!– https://wordpress.org/plugins/complete-open-graph/ –><meta property=”og:site_name” content=”Sprânceana lui Dostoievski”>
    <meta property=”og:url” content=”https://xn--sprnceanaluidostoievski-k6b.ro/ioana-parvulescu-intoarcere-in-secolul-21/”&gt;
    <meta property=”og:locale” content=”en_US”>

    The page I need help with: [log in to see the link]

  • The topic ‘Facebook sharing URL not showing special characters ( diacritics, breve)’ is closed to new replies.