Redirect on click user avatar and username to user profile page /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 Likes

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 Like

Thanks! It solved the problem.

2 Likes

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