# Glitch with username link in profile card

**URL:** https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357
**Category:** Bug
**Created:** [03.Апрель.2019 15:45:03 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357 "2019-04-03T15:45:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bts/32/184556_2.png) [@bts](https://meta.discourse.org/u/bts)
#### Post date: [03.Апрель.2019 15:45:03 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357/1 "2019-04-03T15:45:03Z")

</div>

Just noticed the following behavior:

- In any topic or PM, click username or avatar to open profile card
- Hover over username/avatar — URL destination preview (i.e. in lower left in Chrome) shows as current topic URL, _not_ user profile
- Despite the wrong URL showing on hover, clicking directly still brings me to the user profile
- However CMD + click opens the current topic (same page) in a new tab, rather than the user profile as expected

I tend to use `CMD + click` to open user profile in a new tab pretty often so I think this is a recent regression. This happens on two different forums I run + Meta, and in multiple different browsers.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [03.Апрель.2019 16:45:46 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357/2 "2019-04-03T16:45:46Z")

</div>

@Johani any idea why [you removed](https://github.com/discourse/discourse/commit/ec2123809fa488a748c5383bcb9936c9ce4367f2#diff-ae51cb3d96ff1a3ed65d1c0ea3ed10eaL70) the content of the `href` attribute in the user card?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [03.Апрель.2019 16:54:02 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357/3 "2019-04-03T16:54:02Z")

</div>

There was some weird things going on because you had both an action doing some routing and a href doing something else, can’t remember exactly but something was not right. Will look at this.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [03.Апрель.2019 17:17:43 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357/4 "2019-04-03T17:17:43Z")

</div>

Ok, I think it was misbehaving before (mostly some tests were failing), but other changes we made in this PR actually make it possible to have this.

[https://github.com/discourse/discourse/commit/974007a3cc3e0bef9ec2c2f5d11cf55fece66724](https://github.com/discourse/discourse/commit/974007a3cc3e0bef9ec2c2f5d11cf55fece66724)

Thanks.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [03.Апрель.2019 17:17:48 UTC](https://meta.discourse.org/t/glitch-with-username-link-in-profile-card/113357/5 "2019-04-03T17:17:48Z")

</div>


