We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug If we have parameters in route, that neight on this route with parameters, no without we won't see child menu
To Reproduce Steps to reproduce the behavior:
Menu::make('Test Param') ->slug('basket-dids-manual') ->list([ Menu::make('Test') ->route('platform.test.list'), ]) ->route('platform.test-param.list', '?type=1'),
Expected behavior An "active" class should add to menu element by route core
The text was updated successfully, but these errors were encountered:
By default, menu item activity is determined based on the following pattern:
$href, $href.'?*', $href.'/*',
You can define your own activity rules explicitly using the active method. For example:
active
Menu::make()->active([ route('platform.test-param.list'). '*' // Or any rules ])
Additionally, the route definition seems a bit unusual. Typically, the second parameter should be specified as an array with keys. For example:
->route('platform.test-param.list', [ 'type' => 1, ]),
Sorry, something went wrong.
tabuna
No branches or pull requests
Describe the bug
If we have parameters in route, that neight on this route with parameters, no without we won't see child menu
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An "active" class should add to menu element by route core
The text was updated successfully, but these errors were encountered: