A discussion issue has been reported by charleswalter where the body class from a category is not loading on topic pages upon initial load, but works after a hard refresh. charleswalter noted that this issue only occurs when accessing topics from a category, and not from the site’s homepage.
@codinghorror suspected this might be a bug and asked zogstrip to investigate. zogstrip pushed a fix, but later reverted it due to a class break on the topics list. A proper fix was then applied, which included a memory leak fix zogstrip.
Is this a bug? or is there a technical limitation for this?
When I first load a topic, we noticed that it does not render the body class from the forum it belongs to, until we do a hard refresh. Has anyone else noticed this?
body class=“docked archetype-regular”
After refresh…
body class=“category-entretenimiento-chismesgordos docked”
Interestingly, this problem appears when accessing topics from a category. When accessing topics from the homepage of the site (categories index, latest posts, etc.), the topic page appears to apply the body class accordingly.
I assume it has to do with the way the web application is rendering the topic pages.