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

How to redirect to user profile page i.e. u/username/summary when click on avatar and username instead of opening popup of user card?

redirect-profile

「いいね!」 2

Dev is not my strong suit, but I’ve asked the clever people and I believe something like this should be what you’re looking for: :+1: :slight_smile:

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

Thanks! It solved the problem.

「いいね!」 2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.