joshm
(Josh)
11 ืืืคืจืื,โ 2018,โ 2:22pm
1
Hi,
I like to add emojis in titles, but after an emoji is added, the url of the post also changes, including the name of the emoji.
For example, if I add the emoji, the url changes:
Before: www.example.com/t/nice-title/25
After: www.example.com/t/smile-nice-title/25
This is bad for SEO. Is there anyway to manually edit the URL or to avoid having URLs with emojis?
Thanks!
joshm
(Josh)
11 ืืืคืจืื,โ 2018,โ 2:23pm
2
Iโve just added a emoji to the title of this post, and the url didnโt change.
How do I achieve this in my installation?
Johani
(Joe)
11 ืืืคืจืื,โ 2018,โ 2:27pm
3
I donโt think removing the emojis from the url is a possibility just yet, but I could be wrong.
While I understand you want to keep the emojis but remove them from urls, if that bothers you so much, you can remove / disable them altogether.
There was a bit of discussion about this here:
Iโd love a global switch that says,
โno emojis in subject linesโ
it can just be forward moving, leaving the existing posts as isโฆ
the problem is escalation. One leads to five leads to a mess.
Which resulted in a setting to disable emojis in topic titles if thatโs what you prefer:
joshm
(Josh)
11 ืืืคืจืื,โ 2018,โ 2:32pm
4
Thanks! I understand.
Anyway, there must be a way to add an emoji in the title, and not change the URL, since in this forum https://meta.discourse.org/ , if you add an emoji in the title, after the post has been created, the URL doesnโt change.
In my install, if I add an emoji to the title, after the post has been created, the URL does changes.
Johani
(Joe)
11 ืืืคืจืื,โ 2018,โ 2:35pm
5
Youโre right, I just saw your second post. I will leave this to someone more knowledgeable to answer
Falco
(Falco)
11 ืืืคืจืื,โ 2018,โ 2:56pm
6
Itโs different if you add the emoji as :) or if you add it as :slightly_smiling_face:.
First isnโt added to the URL, while the second will be.
Both URLs will work, and we have a canonical pointing to the, well, canonical URL.
joshm
(Josh)
11 ืืืคืจืื,โ 2018,โ 3:12pm
7
Thanks. Anyway, I think I found an easy solution to my need. I hope this helps someone else:
1- Go to a page containing an unicode list of emojis, like https://emojipedia.org or http://xahlee.info/comp/unicode_emoticons.html
2- Copy your emoji and paste it in the title ๐ท ๐ ๐
๐ท.
It will still appear in the title but not in the url. You can use many emojis ๐ท ๐ ๐
๐ท , and not only the basic ones, like :) :(
Note: in the editor and in the preview, they are showing if firefox, but not in chrome browser at least in my computer
sam
(Sam Saffron)
12 ืืืคืจืื,โ 2018,โ 4:51am
8
@codinghorror this is a bit of a strange inconsistency here, I donโt really mind it that much but you can work around emojis sneaking into slug now by having actual emojis in the title vs :smile: and such.
codinghorror
(Jeff Atwood)
12 ืืืคืจืื,โ 2018,โ 5:26am
9
We need to stop doing this because it hurts non English sites a lot, as previously discussed.
sam
(Sam Saffron)
13 ืืืคืจืื,โ 2018,โ 12:42am
10
Should we strip emoji from slug unconditionally or just for non-English sites, @techAPJ worked on this last so he can do whatever you think is right here.
codinghorror
(Jeff Atwood)
13 ืืืคืจืื,โ 2018,โ 4:19am
11
For parity with other languages I think we have to strip emoji strings from URLs / titles @techapj โ otherwise it is a giant can of :bug:s to untangle that
The other option is to keep unicode emoji in URLs but do we really want to go there?
http://โโโโโโโโโบโโโโนโโ.org/
aka
http://xn--55gaaaaaa281gfaqg86dja792anqa.org/
techAPJ
(Arpit Jalan)
18 ืืืคืจืื,โ 2018,โ 6:09am
12