Kyslik / column-sortable

Package for handling column sorting in Laravel 5/6/7/8
MIT License
641 stars 105 forks source link

3nd parameter does not working #206

Open bluestar0505 opened 1 year ago

bluestar0505 commented 1 year ago

If the URL has a parameter of the same name, the 3nd parameter does not work.

Current URL is http://localhost:8000/backend/parts?_tab=1&search_param%5Btab%5D=2&sort=type&direction=asc

My page have two tables, two sort.

Status1@sortablelink('status', ' ▲▼', ['_tab'=>1, 'search_param'=>$search_params])
Status2@sortablelink('status', ' ▲▼', ['_tab'=>2, 'search_param'=>$search_params])

Second table's sort link was too "_tab=1" http://localhost:8000/backend/parts?_tab=1&search_param%5Btab%5D=2&sort=type&direction=asc

not "_tab=2" http://localhost:8000/backend/parts?_tab=2&search_param%5Btab%5D=2&sort=type&direction=asc

How to set sort parameter and to change url's parameter in this case?