Fix user avatar flickering on page navigation
Created by: eseliger
The path segment was always recreated, thus invalidating the loop over it in PageHeader. As a result, the UserAvatar was always reinstanciated and rendered again, whenever the header rerenders (every location change, for example). This prevents it from flickering.