bengott/meteor-avatar

defaultImageUrl: Relative path not working

Closed this issue · 3 comments

Avatar.options = {
  fallbackType: "default image",
  defaultImageUrl: "img/avatar.png"
};

renders to

GET http://i2.wp.com/localhost/img/avatar.png 404 (Not Found)

Maybe I've overseen this or you have added it right now:

"Note that Gravatar's default option requires a publicly accessible URL, so it won't work when your app is running on localhost and you're using either the included package default image or a custom defaultImageUrl that is a relative path. It will work fine once deployed though."

But I can confirm: Works if loaded from remote

This is really painful while development. Is there is any fix for this?

You can try this #62