yeah, the first letter of the username is in capital.
I am just wondering, because the default XF-Links to the user-profile-page do not show the first letter capitalised.
So there is a difference in the link-URL....
Does this matter or is it irrelevant ?
I link to profile page using this code. The strtolower may be the missing piece.
<a href="/community/members/' . strtolower($XF->visitor->get('username')) . '.' . $XF->visitor->get('user_id') .'"> '. $current_user->display_name .'</a>
The username text in the profile-page link does not matter. You could replace it with alpha-numeric garbage, it should still point to the right profile page as long as you leave the user ID number in place.
Example : http://xenforo.com/community/members/whatEVERyouWANThere.15071/