Avatar returns wrong url

If you use a custom folder setup and use the avatar() method to retrieve its image or the url, it still points to the default /assets/avatars folder.


$kirby = kirby();
$kirby->roots->avatars = __DIR__ . '/site/accounts/';

When I upload the avatar to the panel, it will be stored in the right place though.

You probably have to set the urls as well:

$kirby->urls->avatars = ...

(not tested)

1 Like

Thanks, didnโ€™nt see that, works great!