How to display the user's url in a template?
You can use the path function in a Twig template:

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


I don't know if user.url is a thing.