# 在漂亮的回复徽章中点击帖子会打开用户卡片，而不是帖子

**URL:** <https://meta.discourse.org/t/clicking-on-a-post-in-nice-reply-badges-opens-user-card-not-post/281074>\
**Category:** Bug\
**Created:** [2023 年10 月 4 日 19:04 UTC](https://meta.discourse.org/t/clicking-on-a-post-in-nice-reply-badges-opens-user-card-not-post/281074 "2023-10-04T19:04:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2023 年10 月 4 日 21:17 UTC](https://meta.discourse.org/t/clicking-on-a-post-in-nice-reply-badges-opens-user-card-not-post/281074/7 "2023-10-04T21:17:49Z")

</div>

因为初始的 `<a>` 标签包含了整个徽章信息：

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/d/1/cd1a25dc7b618863c39a957d43360d529a93ac3d.png)

嗯，你可以通过在第 17 行关闭这个 `<a>` 标签来修复它：

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/user-info.hbs#L1-L16](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/user-info.hbs#L1-L16)

但如果因为某些原因没有头像，那就行不通了。我认为“正确”的放置位置是在第一组插件出口之前，但那些是在一个 `<div>` 标签内部，所以对我来说不够简单，无法修复，而我本来希望为 Hacktoberfest 做这件事的。😿

---

_[View the full topic](https://meta.discourse.org/t/clicking-on-a-post-in-nice-reply-badges-opens-user-card-not-post/281074)._
