Add additional query parameters to the entries page so a cpUrl function can use them #10669
-
I am trying to create a link to the entries page with the status on 'pending' with the use of cpUrl. Sadly the entries page doesn't use additional query params as I tried giving it, 'status=pending'. Apart from my use case I think it would be a good feature to have more customisation in the cpUrl function so additional parameters can be added that affect the active filters or status on a page for example. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I’ve wanted to add this for a while, but it hasn’t been feasible due to the way element index classes replace the URL based on the selected source. However I was able to make it happen for Craft 4 thanks to some related JS refactoring. So this has been added for the status and sort menus, for the next Craft 4 Beta release. Changing their selections will add |
Beta Was this translation helpful? Give feedback.
I’ve wanted to add this for a while, but it hasn’t been feasible due to the way element index classes replace the URL based on the selected source. However I was able to make it happen for Craft 4 thanks to some related JS refactoring.
So this has been added for the status and sort menus, for the next Craft 4 Beta release. Changing their selections will add
status
andsort
query string params to the URL, which will be respected on initialization if present. (1f54cd2)