Solved filter doesn't update status on the dropdown

I don’t know why and if it’s a change in the core, but a quick debug here

https://github.com/discourse/discourse-solved/blob/main/assets/javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter.js#L47-L51

shows that modelParams doesn’t exist if you are not on a category page.

It’s defined here:

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/routes/build-category-route.js#L71

Several alternatives work on the homepage and category route:

.queryParams.solved
.attributes.list.params.solved
.attributes.list.listParams.solved

I don’t see any recent changes in the core. :thinking:

From what I see, modelParams has been used since this PR:

https://github.com/discourse/discourse-solved/commit/9087034a4d397ee0df6c65212f4f9fe275b8d5cb

1 Like