# Slash preceeding an @mention does not generate usercard link

**URL:** https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979
**Category:** Bug
**Tags:** user-card
**Created:** [4 Marzo, 2015 17:36 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979 "2015-03-04T17:36:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)
#### Post date: [4 Marzo, 2015 17:36 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979/1 "2015-03-04T17:36:52Z")

</div>

A slash preceeding an @mention causes the markup for the user card link to not be generated.

Example:

@codinghorror/@sam

this should have generated two notifications, but only contain the usercard link for Jeff.

~~EDIT… of course it doesn’t do it here. works on [what.thedailywtf.com](http://what.thedailywtf.com) as well as try.d ([link while it lasts](http://try.discourse.org/t/testing-a-notification-bug/328))~~

EDIT2: nope. i just used the wrong slash.

---

<div class="post-metadata">

### Author: ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)
#### Post date: [5 Marzo, 2015 02:46 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979/2 "2015-03-05T02:46:39Z")

</div>

looks like quite a few chaacters also cause the bug:

> **[What the Daily WTF?](https://what.thedailywtf.com/login)**

for example these three constructs generated notifications, but are missing mention hyperlink in cooked:

this.looks.like.an.email.but.isnt@accalia.fakedomain  
x@accalia  
\_@accalia

```plaintext
this.looks.like.an.email.but.isnt@accalia.fakedomain
x@accalia
_@accalia

```

---

<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: [28 Mayo, 2015 05:49 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979/3 "2015-05-28T05:49:40Z")

</div>

@eviltrout I think this is cause of

[https://github.com/discourse/discourse/commit/63f2187d72356dedc26d5e1d727580f2ba87b132](https://github.com/discourse/discourse/commit/63f2187d72356dedc26d5e1d727580f2ba87b132)

But there may be other spots in the mention matcher as well that are causing this.

---

<div class="post-metadata">

### Author: ![jamesgecko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesgecko/32/103983_2.png) [@jamesgecko](https://meta.discourse.org/u/jamesgecko)
#### Post date: [16 Octubre, 2015 23:32 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979/4 "2015-10-16T23:32:12Z")

</div>

I’ve put in a [pull request](https://github.com/discourse/discourse/pull/3859) that resolves the mention-after-a-slash case.

---

<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: [7 Diciembre, 2015 12:22 UTC](https://meta.discourse.org/t/slash-preceeding-an-mention-does-not-generate-usercard-link/25979/5 "2015-12-07T12:22:49Z")

</div>


