Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PSchuBu's avatar
Level 15

Nova global search: Customize link

Hey there,

I've question customizing Nova: I've a resource with stored files (public path). I'd like to link directly to this file within the global search. I've not found any documentation or hints to customize the global search result (except for title and subtitle)

Any solutions? Thanks!

0 likes
3 replies
ejdelmonico's avatar

If you leave Nova as installed (without Scout), the search will return whatever is in the DB column for the link. So, the easiest method is to make sure the path is stored the way you want it. Otherwise, you would have to use a package or Scout. I am not aware of any other way as of yet. Of course, things are changing fast on the Nova front.

Packages can be discovered here.

PSchuBu's avatar
Level 15

Thank you, but I don't understand your solution (storing the link in a column?)

... after a bit of research i found out, that the api request goes to http://localhost/nova-api/search?search=yourquery

and it returns json. There is a parameter "url" that returns the destination link.

this get-route is associated to the Laravel/Nova/Http/Controllers/SearchController@index Action.

so my question: is it possible to override/extend this action easily? my first approach was to override the Nova-Search-Route, but it failed.

I don't want to change the original source with that Controller, it will break when updating.

Thanks for your help!

sergiolopez's avatar

Someone has managed to put a link in the public function subtitle in Global Search?

Thanks

Please or to participate in this conversation.