When categories set as home page, sidebar jumps down and "all categories" is highlighted

Hi @tobiaseigen

This looks like the sidebar is automatically scrolling to bring the active “All Categories” link into view when the page loads.

One possible workaround would be a small theme component customization that keeps the sidebar at the top on initial page load, while still allowing the active category to remain highlighted.

However, I think the better long-term solution would be to handle this in Discourse itself, so the sidebar doesn’t automatically change its scroll position when navigating to the homepage.

Since the behavior seems different between a full page refresh and normal navigation, it may be related to how the sidebar restores its scroll position. That would be worth checking before applying a custom fix.

2 Likes