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?
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:
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.