-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Menu with sub menu does not stay unfolded #795
Comments
Hi @rabol , can you share the |
I did not touch the standard:
|
@rabol All appears to be ok. When you press the link, the |
Yes, in the address bar it's the same url |
if i change to this:
instead of this
it works |
here is my route definition from web.php
|
@rabol Thanks for the feedback, I have reproduced the problem in my environment, give me some time to check why isn't working on this particular situation... |
Hi @rabol , for the moment try next solution:
Please, give me your feedback about this solution, and I will make a PR later to fix this issue. |
seems to work for the index of the resource, but not for create, edit and show e.g. http://laravel.test/admin/roles/1/edit collaps the menu I added the new method: compser dump-autoload anything else I need to do ? |
In that case, you will need to use the active attribute because your menu item needs to match multiple urls. For example: [
'key' => 'admin_user_management',
'text' => 'User management',
'icon' => 'fa-fw nav-icon fas fa-users',
'submenu' => [
[
'text' => 'Permission',
'route' => 'admin.permissions.index',
'active' => ['admin/permissions*'],
],
[
'text' => 'Roles',
'route' => 'admin.roles.index',
'active' => ['admin/roles*'],
],
],
], |
yes, the active did the trick - thanks a lot! |
@rabol Thank you for reporting the issue, a fix will be available on the next versions. |
@rabol @Shidersz fixed with release v3.5.2 |
Current Behavior
When selecting a submenu item, the menu is not staying un folded and selected
Expected Behavior
That the menu is unfolded and the subitem selected
Steps to Reproduce
have this config:
then on the page select Permissions or Roles
The text was updated successfully, but these errors were encountered: