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 | ๐Ÿ”ฅ๐Ÿ˜…๐Ÿ˜ฒ๐Ÿ’›๐Ÿคฉ๐Ÿคฎ๐Ÿ˜Š

What browser are you using?ย Could contain: File, Webpage, Person, Text, Face, Head

ย 

I see it in the address bar and even the copied URL is

https://invisioncommunity.com/forums/topic/470924-emoji-in-seotitle-unfriendly-url-๐Ÿ”ฅ๐Ÿ˜…๐Ÿ˜ฒ๐Ÿ’›๐Ÿคฉ๐Ÿคฎ๐Ÿ˜Š
Link to comment
Share on other sites

@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...