F
Filament10mo ago
rabol

Link in admin panel

Hi In V2, the link in the upper left corner of the panel was going to the frontend, but now it goes to /admin Is there a way to get the 'old' function back ?
Solution:
->homeUrl('/');
->homeUrl('/');
works...
Jump to solution
3 Replies
GDG
GDG10mo ago
You can set ->homeUrl() in your panel provider.
rabol
rabol10mo ago
tried this:
->homeUrl(route('home'));
->homeUrl(route('home'));
but it throws an error on any named route:
Route [home] not defined.
Route [home] not defined.
routes are most likely not 'loaded' in the provider
Solution
rabol
rabol10mo ago
->homeUrl('/');
->homeUrl('/');
works