Fix AvatarLink when using a suburl

Fix AvatarLink when using a suburl and gravatar is disabled or avatars are cached.