Greek – Greeklish [Greek to English] – And URL keyword issue

#61385
  • Resolved Merianos Nikos
    Rank Math free

    Hello,

    I am building a website for the greek market, and unfortunately, if we use in the slug of posts/taxonomies any greek characters, the URLs in the social media are appearing really very ugly.

    For instance, if I set this as a post slug /παιδί then, when I do a paste in the social media, the URL becomes /%CF%80%CE%B1%CE%B9%CE%B4%CE%AF which is not friendly at all.

    For this purpose for Greek slugs, we use plugins that translate the greek letters to English (Thus, Greeklish). Thus, for example, the slug /παιδί will become /paidi.

    With that said, my question is if there’s any solution for when I use as a keyword the term “Παιδί” to accept it as Keywork in the URL and stop getting back the error message: Focus Keyword not found in the URL.

    For example, is there any filter I can use to translate in Greeklish the given keyword before this evaluated?

    Thanks in advance! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hi,

    Thanks for getting in touch with us.

    we are sorry but that option is not available for transliteration of Greek Characters.

    If you want, we can help you disable the Focus Keyword not found in the URL test and give your post the score for that test anyway.

    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
    
        unset( $tests['content-readability']['keywordInPermalink'] );
    
        return $tests;
    }, 10, 2 );

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

    Hello Todd and thank you for your reply.

    For now, what you describe it’s just fine and I suppose it will work.

    But I guess it could be nice if the string under test could be handled by any filter, like,

    
    // Somewhere in the RankMath source code you do a check if the given keyword appears in the URL
    // Thus something like that it could be nice as a future feature :)
    
    $keywork = 'Παιδί';
    
    // After I utilize the keyword-under-test, I could return the greeklish version like 'paidi'
    $keyword = apply_filters('keyword-under-test', $keyword);
    
    $is_keyword_in_url = keyword_exists_in_url($keywor);
    

    If for example, you could provide this in the future, it will be easy for users that have troubles like this to replace the native string translation with the English representation, and still have the same score 🙂

    I hope this could be possible at some point in the future. Thank you in advance for your time and your help 🙂

    Hello,

    Thank you for contacting Rank Math today.

    If you have the keyword in your URL, the check should not worry you. These are just guidelines and recommendations by Rank math, they are not to be followed religiously. I’ll however forward your suggestion to the dev team for consideration.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Michael Davis thank you very much for your reply and the suggestions !! 🙂

    Kind regards
    Merianos Nikos

    Todd
    Rank Math free

    Hi Merianos,

    We are always glad to help.

    If you have any queries or more feedback, please do not hesitate to open a new ticket.

    Thank you.

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

The ticket ‘Greek – Greeklish [Greek to English] – And URL keyword issue’ is closed to new replies.