Jump to content

Emoji in seoTitle & (un)Friendly URL | 🔥😅😲💛🤩🤮😊


SeNioR-

Recommended Posts

Hi. seoTitle function currently does not remove Emoji from URLs. Link with emoji becomes unfriendly. Consider adding a new preg_replace

$value = preg_replace('/[^ -\x{2122}]\s+|\s*[^ -\x{2122}]/u','',$value);

 

The copied and pasted URL looks like this: 

https://invisioncommunity.com/forums/topic/470924-emoji-in-seotitle-unfriendly-url-%F0%9F%94%A5%F0%9F%98%85%F0%9F%98%B2%F0%9F%92%9B%F0%9F%A4%A9%F0%9F%A4%AE%F0%9F%98%8A/

 

Edited by SeNioR-
Link to comment
Share on other sites

  • SeNioR- changed the title to Emoji in seoTitle & (un)Friendly URL | 🔥😅😲💛🤩🤮😊

@Daniel F I made a test topic in the Test Posting forum so you can see the issue => https://invisioncommunity.com/forums/topic/470928-emoji-test-✂️%EF%B8%8F/

 

 

The topic title contains this text:

Emoji test => ✂️

And the url in Chrome browser on Windows (107.0.5304.123) is:

https://invisioncommunity.com/forums/topic/470928-emoji-test-✂️%EF%B8%8F/

 

Edited by teraßyte
Link to comment
Share on other sites

Emoji are just characters that happen to be displayed as a color image. Their encoding shouldn’t be treated differently. In fact, I wouldn’t even know how, since they do not even have a dedicated Unicode range. Some were matched to existing pictograms and every year new ones are being added. Maintaining a complete list of emoji to be removed from URLs would be quite cumbersome. 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...