# 🤔 dont put emoji name in topic slugs

**URL:** <https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595>\
**Category:** Feature\
**Created:** [2017年十二月21日 23:52 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595 "2017-12-21T23:52:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [2017年十二月21日 23:52 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/1 "2017-12-21T23:52:04Z")

</div>

I think emoji names should not appear in the url. What do you think? 🤔

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年十二月22日 00:03 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/2 "2017-12-22T00:03:51Z")

</div>

Personally, I don’t think emojis should be in titles to begin with as I find them “noisy” in topic lists. But that’s me.

---

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [2017年十二月22日 00:08 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/3 "2017-12-22T00:08:38Z")

</div>

Exactly. They are making my discourse topic list noisy too. However they make the url even worse.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年十二月22日 00:20 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/4 "2017-12-22T00:20:17Z")

</div>

I guess it’s a matter of whether or not they impart useful information. eg.

`https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-the-url/76595`

Does the “thinking” make it more clear that the discussion is about pondering the use of emoji names in URLs, or does it make it less clear? And that’s only one emoji name of many.

Perhaps bracket it in some way to identify it as an emoji name? eg. (maybe not the best choice of enclosures, but as a rough idea)

`https://meta.discourse.org/t/{thinking}-dont-put-emoji-name-in-the-url/76595`

---

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [2017年十二月22日 00:27 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/5 "2017-12-22T00:27:30Z")

</div>

I don’t mind them in the titles (or maybe should be an ACP option - as different forums will have different needs) but definitely shouldn’t be in the URL and should not count towards min title/character length imo…

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年十二月22日 00:46 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/6 "2017-12-22T00:46:11Z")

</div>

I don’t know what changes could be made without risking routing problems. Nor do I know how much work to core code would be needed.

Links work fine as long as the topic id is at the end.

eg.  
`https://meta.discourse.org/t/dont-put-emoji-name-in-the-url/76595`

> [@thinking dont put emoji name in topic slugs](https://meta.discourse.org/t/dont-put-emoji-name-in-the-url/76595):
>
> I think emoji names should not appear in the url. What do you think? thinking

and URLs without the topic id will work as long as the slug is correct  
`https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-the-url`  
[https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-the-url](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-the-url)

but there would be a problem if the slug wasn’t correct and there was no topic id  
`https://meta.discourse.org/t/dont-put-emoji-name-in-the-url`  
[https://meta.discourse.org/t/dont-put-emoji-name-in-the-url](https://meta.discourse.org/t/dont-put-emoji-name-in-the-url)

☹

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月22日 01:13 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/7 "2017-12-22T01:13:18Z")

</div>

It’s an easy enough change we have all our “slug” logic centralized to one spot and it can be smart enough to strip `:emoji:`, though it needs to be smart enough not to strip `:not-an-emoji:`

@codinghorror’s call if he wants this or not, I am on the fence here.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十二月22日 01:16 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/8 "2017-12-22T01:16:57Z")

</div>

I think it’s fine the way it is.. and honestly when a topic title is

> I ❤ rock and roll

which transliterates to the slug

> i-heart-rock-and-roll

that’s basically correct..

---

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [2017年十二月22日 09:34 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/9 "2017-12-22T09:34:59Z")

</div>

> [@codinghorror](#):
>
> i-heart-rock-and-roll

Even this example does not make full sense.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十二月22日 10:23 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/10 "2017-12-22T10:23:35Z")

</div>

Sure it does, I would like to enter in evidence, if it pleases the court, this following video recording

[![](https://global.discourse-cdn.com/meta/original/4X/6/7/3/673b43e62ac1923dcacced7330d3fe7b57978465.jpeg "I love Rock n roll - Joan jett The Blackhearts") ](https://www.youtube.com/watch?v=xL5spALs-eA)

---

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [2017年十二月22日 10:53 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/11 "2017-12-22T10:53:58Z")

</div>

It says “I **love** rock and roll” 😉 not **heart**. Ofcourse it makes sense but this is one of the few emojis that results a meaningful slug.

On the other hand, we are only considering English here. What about other languages?

for example If I create a topic like

> انا ❤ روك اند رول

It would generate the following slug

> heart

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月22日 11:11 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/12 "2017-12-22T11:11:44Z")

</div>

In Arabic though you would probably enable encoded slugs, no?

---

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [2017年十二月22日 11:34 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/13 "2017-12-22T11:34:04Z")

</div>

I have never found a good user experience with encoded slugs. So I mostly don’t enable them. Having raised this issue,I would like to say that we are still missing [customizing slug](https://meta.discourse.org/t/custom-permalink-for-topics/45128) feature.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2017年十二月22日 17:29 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/14 "2017-12-22T17:29:53Z")

</div>

> [@parisa](#):
>
> On the other hand, we are only considering English here. What about other languages?
> 
> for example If I create a topic like
> 
> انا ❤ روك اند رول
> 
> It would generate the following slug
> 
> heart

Wouldn’t this be a case for a plugin that uses localized emoji short\_names?

Unicode provides TTS descriptions for plugins, for example (Spanish names):

🐮 cara de vaca  
🐂 buey  
🐃 búfalo de agua  
🐄 vaca  
🐷 cara de cerdo  
🐖 cerdo  
🐗 jabalí  
🐽 nariz de cerdo  
🐏 carnero  
🐑 oveja  
🐐 cabra  
🐪 dromedario  
🐫 camello  
🦒 jirafa

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年十二月22日 18:43 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/15 "2017-12-22T18:43:50Z")

</div>

As far as I can see, the only potentially serious concern might be having 💩 in a title that might cause a flag for an email client.

Granted, there are many emoji names and an infinite number of possible topic titles. But although the emoji names could make it more difficult to understand the title I can’t think of any combinations where it would render them indecipherable.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十二月22日 19:56 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/16 "2017-12-22T19:56:43Z")

</div>

Yeah localization is a major argument in favor of _not_ doing what we’re currently doing.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月22日 20:20 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/17 "2017-12-22T20:20:09Z")

</div>

I would say at least for non English we should stop doing this, can be built into the slug class

---

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [2017年十二月24日 04:57 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/19 "2017-12-24T04:57:37Z")

</div>

AFAIK slugs are for SEO purposes since the topic id is always used at the end.

So you need to ask, what is correct for SEO purposes. If the emoji is part of the content then it is relevant. Otherwise it is not and it hurts SEO.

Would it be that emojis at the beginning and very end of the title are usually not part of the content, while emojis inside the title sometimes may be?

For example:

Why doesn’t 🙂 show up? A regression? 🤔

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月25日 22:44 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/20 "2017-12-25T22:44:15Z")

</div>

A post was split to a new topic: [Allow me to disable emojis in topic titles](https://meta.discourse.org/t/allow-me-to-disable-emojis-in-topic-titles/76747)

---

<div class="post-metadata">

**Author:** ![sonshi\_com](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sonshi_com/32/86351_2.png) [@sonshi\_com](https://meta.discourse.org/u/sonshi_com)\
**Post date:** [2017年十二月31日 16:14 UTC](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595/21 "2017-12-31T16:14:06Z")

</div>

Perhaps this might be unrelated but please remember there are URLs that contain emojis otherwise known as emoji domains. For example, we own [☮.com](http://xn--v4h.com).

[下一頁](https://meta.discourse.org/t/thinking-dont-put-emoji-name-in-topic-slugs/76595.md?page=2)
