Adding the “View Profile” link in the Member Directory cards
To allow your users to have easy access to view members' profiles from the Member Directory, you can add the "View Profile" link. You need to use a custom code to enable it, you can try the sample code below:
How the "View profile" is displayed on the Member Directory cards in the list view:
How the "View profile" link is displayed in grid view: