No category class when choosing a tag filter

For a theme I want to have distinct category styles and I’m using the category classes for that (like body.category-feedback). When I filter for a tag within a category, this class is not present anymore. I’m still within the category though, so I believe the class should stay.

Edit: It seems to be working on meta. But I get the missing category class on several independent instances. I can’t figure out what’s the common cause so far.

2 Likes

I would check transitions, topic vs category page, various category styles, themes, plugins.

2 Likes

It seems to be caused by the Loading slider component. So when I select a tag and then switch categories, the category class is not updated on the body element. @david?

3 Likes

This should be fixed by

https://github.com/discourse/discourse/commit/13b4b0d3c4a8517142f6ad54b50d98dfa6ea6e01

Thanks for reporting @manuel

3 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.