nova-searchable-select icon indicating copy to clipboard operation
nova-searchable-select copied to clipboard

Avatar links are incorrect

Open BenjaminBrandtner opened this issue 5 years ago • 1 comments

I defined an Avatar field on my User Resource:

Avatar::make('avatar')

And defined the Searchable Select Field on an Action:

SearchableSelect::make('User')->resource(\App\Nova\User::class)

The search results show a broken image symbol next to the Username, because the image link is not correct. It just takes the filename and appends it to "one level below" the current url, instead of the storage path.

Screenshot 2019-11-22 at 12 50 28

By "one level below" I mean: If you're on nova/resources/quests the image link will be nova/resources/foo.png and if you're on nova/resources/quests/5 the image link will be nova/resources/quests/foo.png

BenjaminBrandtner avatar Nov 22 '19 12:11 BenjaminBrandtner

Hi,

currently I am swamped with work so cannot fix this but will get around to it as soon as possible.

slovenianGooner avatar Nov 25 '19 19:11 slovenianGooner