laravel / nova-issues

556 stars 34 forks source link

The Nova HomeController isn't calling the initialPath closure #5814

Closed peterr6 closed 1 year ago

peterr6 commented 1 year ago

Description:

The Nova HomeController isn't calling the initialPath closure.

Detailed steps to reproduce the issue on a fresh Nova installation:

In NovaServiceProvider.php

Nova::initialPath( function($request) { return $request->user()->isAdmin() ? '/dashboards/overview' : '/resources/incidents'; } );

[2023-08-17 11:20:51] local.ERROR: Object of class Closure could not be converted to string {"userId":1521,"exception":"[object] (Error(code: 0): Object of class Closure could not be converted to string at /app/vendor/laravel/nova/src/Concerns/HandlesRoutes.php:17)

[stacktrace]

0 /app/vendor/laravel/nova/src/Http/Controllers/Pages/HomeController.php(19): Laravel\Nova\Nova::url(Object(Closure))

crynobone commented 1 year ago

This has been fixed and is pending the next release

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.