# Links to tags not working in final post unless autocompleted

**URL:** https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884
**Category:** Bug
**Created:** [12.Сентябрь.2017 10:54:46 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884 "2017-09-12T10:54:46Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)
#### Post date: [12.Сентябрь.2017 10:54:47 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/1 "2017-09-12T10:54:47Z")

</div>

If you add a # and select a relevant tag, the word is automatically converted to a link for the relevant tag in the Preview Pane, but this link is not appearing in the final ‘baked’ post in the forum

See here - code entered, preview pane shows bolded, working link - but not appearing in the actual topic posted (above)

 ![tag-error](https://global.discourse-cdn.com/meta/original/3X/7/5/75608e44c4f0a1efb5c81d86c936a013d5f3fd31.PNG)

(running 1.8.0 with [Communiteq](https://www.communiteq.com) (formerly DiscourseHosting))

---

<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: [12.Сентябрь.2017 23:20:44 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/2 "2017-09-12T23:20:44Z")

</div>

Can you repro this here or on [try.discourse.org](http://try.discourse.org) ? If it is a bug in 1.8 it won’t be fixed, because it is not security related.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [13.Сентябрь.2017 00:08:52 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/3 "2017-09-13T00:08:52Z")

</div>

This does appear to be a valid bug. To link to a tag you need `::tag` at the end to avoid a namespace collision with categories. So linking to #pr-welcome is `#pr-welcome::tag`.

With that in mind, linking to #pr-welcome (`#pr-welcome`) works in preview but not once submitted.

I’ll note that using autocomplete when typing a tag adds `::tag` automatically. This is only an issue when typing the tag “manually”.

---

<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: [13.Сентябрь.2017 00:11:13 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/4 "2017-09-13T00:11:13Z")

</div>

Э.. что?

#pr-welcome — это нормальный тег. Так же, как и #pr-welcome.

Добавление #Community Building > Praise из автозаполнения.

А, понял, это серьёзный регресс. Кто-нибудь должен это проверить!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [13.Сентябрь.2017 00:13:55 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/5 "2017-09-13T00:13:55Z")

</div>

> [@codinghorror](#):
>
> Добавляю #Community Building > Praise из автодополнения.

Praise — это категория, у неё нет «суффикса». Символы `::tag` нужно добавлять только к тегам.

---

<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: [13.Сентябрь.2017 00:15:34 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/6 "2017-09-13T00:15:34Z")

</div>

Oh right my bad #faq-material::tag entered from autocomplete, and #faq-material typed.

@tgxworld I really do not agree with this design. Like users and groups, tags and categories should share the same namespace.. the `#blah:tag` pattern should only be required for disambiguation.

---

<div class="post-metadata">

### Author: ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)
#### Post date: [13.Сентябрь.2017 08:14:26 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/10 "2017-09-13T08:14:26Z")

</div>

Thanks both - sorry, time differences make timely conversations awkward.

I was not aware of the requirement for the `::tag` - is this new?

It does work for autocomplete, but I had written these manually as tags were bottom of the original automcomplete list and it was just as easy to type. Now I know the correct process, I can change to use autocomplete more, but as I say, I was not aware of this before

thanks for looking into it

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [13.Сентябрь.2017 17:00:01 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/11 "2017-09-13T17:00:01Z")

</div>

> [@robmc](#):
>
> I was not aware of the requirement for the ::tag - is this new?

No - it’s been required since tags became mentionable in early 2016.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [13.Сентябрь.2017 22:39:29 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/12 "2017-09-13T22:39:29Z")

</div>

> [@codinghorror](#):
>
> the `#blah:tag` pattern should only be required for disambiguation.

Would love to see this change!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [03.Октябрь.2017 06:37:07 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/13 "2017-10-03T06:37:07Z")

</div>

Fixed in

[https://github.com/discourse/discourse/commit/3e53dbcade3c645e3cbd77610e4a5792a2c1a02e](https://github.com/discourse/discourse/commit/3e53dbcade3c645e3cbd77610e4a5792a2c1a02e)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [04.Октябрь.2017 10:00:29 UTC](https://meta.discourse.org/t/links-to-tags-not-working-in-final-post-unless-autocompleted/69884/14 "2017-10-04T10:00:29Z")

</div>

This topic was automatically closed after 27 hours. New replies are no longer allowed.
