XF 2.1 Remove profile avatar's link to source file

El Porcharo

Well-known member
I've spent the last hour among search results here in the forum, but I didn't find anything related to my specific question.

Is there any chance to prevent users to open avatar's "source" file when clicking the avatar from the profile page?
I see is a native behaviour, I would prevent my users to see a browser tab showing the picture file alone (it's quite like they bounce away from the site though)

Thanks in advance,
Marco
 
there are four different templates for member profile view i think. i just checked and it seems doable. unless someone else has a better suggestion! but modification to member_view should do the job i think.

{{ $user.getAvatarUrl('o') ?: '' }} i removed this code from the template and it seems to have worked. i cannot really guarantee if this is a good fix. but seems to do the job.
 
Top Bottom