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:
spranceanaluidostoievski.roThe character with a breve is : a. But when I share a post I want the link displayed in Facebook to contain spranceanaluidostoievski.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’, ‘spranceanaluidostoievski’, $ogurl );
}But somehow it does not work :(. I need help and suggestions
With the Facebook debugger option I can see:
— Jetpack Site Verification Tags –><!– This site is optimized with the Yoast SEO plugin v11.5 – https://yoast.com/wordpress/plugins/seo/ –><link rel=”canonical” href=”https://spr%C3%A2nceanaluidostoievski.ro/ioana-parvulescu-intoarcere-in-secolul-21/”>
<meta property=”og:locale” content=”en_US”>
<meta property=”og:type” content=”article”>
<meta property=”og:title” content=”Ioana Parvulescu – ?ntoarcere ?n secolul 21 – Spranceana lui Dostoievski”>
<meta property=”og:description” content=”blablalaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”>
<meta property=”og:url” content=”https://spranceanaluidostoievski.ro/ioana-parvulescu-intoarcere-in-secolul-21/”>
<meta property=”og:site_name” content=”Spranceana lui Dostoievski”>How can I manipulate the og:url sent ?
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.