# Middle/Right Clicking on Username of Profile Card takes you to the page you are viewing, not the profile

**URL:** https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404
**Category:** Bug
**Created:** [24 juni 2015 om 11:22 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404 "2015-06-24T11:22:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24 juni 2015 om 11:22 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/1 "2015-06-24T11:22:48Z")

</div>

When reading a topic, click on a user to open their user card, then right-click and choose open in new tab or middle click (on either red circled area), you are taken to the page you are currently viewing, not their profile

 ![](https://global.discourse-cdn.com/meta/original/3X/0/2/023ab125b81fdc7d658a87b21a0d5e7c2ae35f97.png)

Happens on Topic list too

 ![](https://global.discourse-cdn.com/meta/original/3X/2/2/2296a94f83dccf820614efa9637d05a8b9f43ed5.png)

---

<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: [24 juni 2015 om 16:21 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/2 "2015-06-24T16:21:19Z")

</div>

Hmm this is due to this commit.

> **[UX: Close user card right away when navigating to a user. ·...](https://github.com/discourse/discourse/commit/72f7c265)**
>
> A platform for community discussion. Free, open, simple. - UX: Close user card right away when navigating to a user. · discourse/discourse@72f7c26

---

<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: [25 juni 2015 om 09:36 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/3 "2015-06-25T09:36:34Z")

</div>

@eviltrout May I check with you what problem the original commit was trying to solve? Even after switching back to `link-to`, the user-card seems to close once it transitions away to another route.

![](https://lh3.googleusercontent.com/HnKDVAeJjMkTSSTyDYOnR9lOkdUffqlg2Tx6sl5FNGk=w1824-h736-no)

I’m trying to put up a fix which uses `link-to` and handles the user card click event in the view that will close the user card. Is that the right direction?

Thanks!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [25 juni 2015 om 12:01 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/4 "2015-06-25T12:01:50Z")

</div>

I believe it dealt with open the user card for User A on the topic list, now click on User B’s username to open their User Card

---

<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: [25 juni 2015 om 12:04 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/5 "2015-06-25T12:04:46Z")

</div>

@cpradio Ah got it. Thanks 😄

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [25 juni 2015 om 17:54 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/6 "2015-06-25T17:54:10Z")

</div>

Here’s a proper fix:

[https://github.com/discourse/discourse/commit/0a9e2f54ff8f97ebac800dd027715347b5f70976](https://github.com/discourse/discourse/commit/0a9e2f54ff8f97ebac800dd027715347b5f70976)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [25 juni 2015 om 17:54 UTC](https://meta.discourse.org/t/middle-right-clicking-on-username-of-profile-card-takes-you-to-the-page-you-are-viewing-not-the-profile/30404/7 "2015-06-25T17:54:16Z")

</div>


