laravel / nova-issues

556 stars 34 forks source link

`Nova::initialPath` as closure error `Object of class Closure could not be converted to string` #5824

Closed dmason30 closed 1 year ago

dmason30 commented 1 year ago

Description:

Search nova code for usages of Nova::$initialPath you will find two places doing Nova::url(Nova::$initialPath) in HomeController and LoginController.

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

  1. In NovaServiceProvider define the below
    Nova::initialPath(function () {
    return '/dashboards/main';
    });
  2. In nova navigate to nova root path in browser address bar (e.g. domain.dev/nova)
  3. Below error occurs image
crynobone commented 1 year ago

fixed and pending next release

dmason30 commented 1 year ago

Oh mb sorry @crynobone