# ユーザーアバターとユーザー名をユーザープロファイルページ/u/username/summaryにクリックでリダイレクト

**URL:** <https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403>\
**Category:** Development\
**Created:** [2023 年 5 月 1 日午後 3:56 UTC](https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403 "2023-05-01T15:56:51Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023 年 5 月 2 日午前 6:04 UTC](https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403/10 "2023-05-02T06:04:10Z")

</div>

開発は得意ではありませんが、優秀な人たちに聞いてみたところ、お探しのものはこれだと思います: 👍 🙂

```js
 api.modifyClass("component:user-card-contents", {
    pluginId: "your-plugin-id",
    _show(_, target) {
      DiscourseURL.routeTo(`${target.href}/summary`);
      return false;
    },
  });

```

---

_[View the full topic](https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403)._
