# 🙂 Emoji in Title and URLs

**URL:** <https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086>\
**Category:** Product Support\
**Created:** [April 11, 2018, 2:22pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086 "2018-04-11T14:22:16Z")\
**Posts on this page:** 13\
**Page:** 1

## AI-generated summary

The discussion revolves around the issue of emojis in Discourse topic titles affecting the URL, which can be detrimental to SEO. [joshm](/t/-/85086/1) initially raises the concern and is told by [Johani](/t/-/85086/3) that removing emojis from URLs may not be possible, suggesting to disable them altogether. 

However, [joshm](/t/-/85086/4) notices that the meta Discourse forum does not change the URL when an emoji is added to the title after the post has been created. [Falco](/t/-/85086/6) explains that using the emoji as `:)` instead of `:slightly_smiling_face:` can prevent the URL change. 

[joshm](/t/-/85086/7) later finds a workaround by copying and pasting the emoji from a Unicode list, which allows it to appear in the title without affecting the URL.

The conversation escalates to involve [codinghorror](/t/-/85086/9), [sam](/t/-/85086/8), and [techAPJ](/t/-/85086/12), who ultimately decide to strip emoji strings from URLs to maintain parity with other languages and avoid potential issues. A commit has been made to implement this change.

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [April 11, 2018, 2:22pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/1 "2018-04-11T14:22:16Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [April 11, 2018, 2:23pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/2 "2018-04-11T14:23:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [April 11, 2018, 2:27pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/3 "2018-04-11T14:27:42Z")

</div>

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:

> [@Allow me to disable emojis in topic titles](https://meta.discourse.org/t/allow-me-to-disable-emojis-in-topic-titles/76747):
>
> 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:

> [@Allow me to disable emojis in topic titles](https://meta.discourse.org/t/allow-me-to-disable-emojis-in-topic-titles/76747/16):
>
> PR here: [https://github.com/discourse/discourse/pull/5604](https://github.com/discourse/discourse/pull/5604) max\_emojis\_in\_title defaults to 2. Setting it to 0 will disable emojis in topic titles. EDIT: PR is now merged.

---

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [April 11, 2018, 2:32pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/4 "2018-04-11T14:32:59Z")

</div>

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/](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.

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [April 11, 2018, 2:35pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/5 "2018-04-11T14:35:15Z")

</div>

You’re right, I just saw your second post. I will leave this to someone more knowledgeable to answer 🌻

---

<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:** [April 11, 2018, 2:56pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/6 "2018-04-11T14:56:55Z")

</div>

> [@joshm](#):
>
> I’ve just added a emoji to the title of this post, and the url didn’t change. 🙂

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.

> [@joshm](#):
>
> This is bad for SEO. Is there anyway to manually edit the URL or to avoid having URLs with emojis?

Both URLs will work, and we have a canonical pointing to the, well, canonical URL.

---

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [April 11, 2018, 3:12pm UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/7 "2018-04-11T15:12:05Z")

</div>

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](https://emojipedia.org) or [http://xahlee.info/comp/unicode\_emoticons.html](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_

---

<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:** [April 12, 2018, 4:51am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/8 "2018-04-12T04:51:35Z")

</div>

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

---

<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:** [April 12, 2018, 5:26am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/9 "2018-04-12T05:26:05Z")

</div>

We need to stop doing this because it hurts non English sites a lot, as previously discussed.

---

<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:** [April 13, 2018, 12:42am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/10 "2018-04-13T00:42:05Z")

</div>

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.

---

<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:** [April 13, 2018, 4:19am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/11 "2018-04-13T04:19:53Z")

</div>

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/](http://xn--55gaaaaaa281gfaqg86dja792anqa.org/)

aka

`http://xn--55gaaaaaa281gfaqg86dja792anqa.org/`

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [April 18, 2018, 6:09am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/12 "2018-04-18T06:09:06Z")

</div>

Okay, we’ll now strip emoji strings from slug / URL.

[https://github.com/discourse/discourse/commit/3566c6f02b2d1f3e84ff5cc565a8cbc676124a6b](https://github.com/discourse/discourse/commit/3566c6f02b2d1f3e84ff5cc565a8cbc676124a6b)

---

<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:** [April 18, 2018, 8:26am UTC](https://meta.discourse.org/t/slightly-smiling-face-emoji-in-title-and-urls/85086/13 "2018-04-18T08:26:19Z")

</div>

Closed on April 18, 2018, 8:26am UTC


