Direct photo and name to Profile page
You can use the example from Twig Functions:


{# Link to user entity page. #}
&lt;a href="{{ path('entity.user.canonical', {'user': user.id}) }}"&gt;{{ 'View user profile'|t }}&lt;/a&gt;



and modify the route to point the link to the profile page:

{# Link to user profile page. #}
&lt;a href="{{ path('entity.profile.canonical', {'profile': user.id}) }}"&gt;{{ 'View user profile'|t }}&lt;/a&gt;