You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a named route in Laravel Folio the Route::currentRouteName() function returns "laravel-folio" instead of the route name defined in the name function. I'm not sure if this is required for Folio's magic or just unintended.
Steps To Reproduce
create a new Folio page
add a name — e.g. name('about')
the output of Route::currentRouteName() equals "laravel-folio" instead of "about"
The text was updated successfully, but these errors were encountered:
I also have the same problem when checking if my current nav-item is active using request()->routeIs('dashboard.index') and it always return false since the current route name keeps giving me laravel-folio as the OP said.
Currently i have to use request()->is('dashboard') to determine my current page which indicates my folder/file name.
Folio Version
v1.0.0-beta.6
Laravel Version
10.19.0
PHP Version
8.2.3
Description
When using a named route in Laravel Folio the
Route::currentRouteName()
function returns "laravel-folio" instead of the route name defined in thename
function. I'm not sure if this is required for Folio's magic or just unintended.Steps To Reproduce
name('about')
Route::currentRouteName()
equals "laravel-folio" instead of "about"The text was updated successfully, but these errors were encountered: