Closed Hanmac closed 2 years ago
If you use a custom context path, you should override the default configuration here:
https://github.com/nucleos/NucleosUserAdminBundle/blob/2.2.x/docs/configuration.rst
i don't use "custom context path", the project just doesn't run as web-root.
it just would break when the Project is moved to a new directory.
Using https://symfony.com/doc/current/components/asset.html would fix the problem, i can make an MR if that's allowed.
Environment
PHP version
Subject
Default Avatar can't find the image because of different web path.
This might be solved using Asset somewhere in the line of getting the AvatarUrl?
Steps to reproduce
Login into Sonata Admin
Expected results
the Default Avatar is shown
Actual results
http://localhost/bundles/nucleosuseradmin/default_avatar.png causes 404
because my Symfony installation is not the Web Root, it can't find the default avatar
it should respect that "http://localhost/project_nuc_sf4/public" is the Web Root ?