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
Seems as though it may not set the active class if the current URL is using optional parameters but the link in the menu is not? For example:
// Suppose we have these routes defined in our app/routes.php file
//...
Route::get('/{test?}', ['as' => 'home.page', function(){...}]);
//...
// Now we make the menu:
Menu::make('MyNavBar', function($menu){
$menu->add('Home', ['route' => 'home.page']);
});
So if you visit http://localhost/ then it will get the class but http://localhost/abc will not.
Hey guys,
The menu item doesn't get activated when the URL has a query parameter.
Example:
$menu->add('Item 1', route('bananas', ['order_by' => 'free']));
On these scenarios, it is never set to active.
Cheers,
The text was updated successfully, but these errors were encountered: