orchidsoftware / crud

Simplify the process of building CRUD (Create, Read, Update, Delete) functionality in Laravel using the features of Orchid.
https://orchid.software
MIT License
137 stars 34 forks source link

Active menu is not highlighting on list with pagination #74

Closed szonov closed 2 years ago

szonov commented 2 years ago

on page /crud/list/task-resources resource menu item is highlighted. on page /crud/list/task-resources?page=2 resource menu item is NOT highlighted.

the same behaviour with any query on resource list page, for example with using filter.

szonov commented 2 years ago

It can be fixed in Orchid\Crud\Arbitrator@activeMenu by adding one more item:

route('platform.resource.list', [
     'resource' => $resource::uriKey() . '?*'
]),
tabuna commented 2 years ago

Hi @szonov, can you do a PR?

szonov commented 2 years ago

Hi @tabuna. I will try

szonov commented 2 years ago

First try was not success. PHP Storm formatting applied