# Right Sidebar Blocks

**URL:** https://meta.discourse.org/t/right-sidebar-blocks/231067
**Category:** Theme component
**Tags:** official, desktop, right-sidebar-blocks
**Created:** [June 25, 2022, 2:55am UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067 "2022-06-25T02:55:24Z")
**Posts on this page:** 20
**Page:** 8

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [July 29, 2025, 3:45pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/159 "2025-07-29T15:45:47Z")

</div>

Hi,

Is it possible to have a cache or something for the ‘recent-replies’? It’s looks like its always fetch the infos in every page refresh

---

<div class="post-metadata">

### Author: ![tyler.lamparter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyler.lamparter/32/485862_2.png) [@tyler.lamparter](https://meta.discourse.org/u/tyler.lamparter)
#### Post date: [August 4, 2025, 7:03pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/160 "2025-08-04T19:03:37Z")

</div>

I have this same issue. It for sure used to be ordered correctly and it doesn’t look like I can use the order parameter for this list.

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [August 4, 2025, 10:13pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/161 "2025-08-04T22:13:48Z")

</div>

> [@tyler.lamparter](#):
>
> It for sure used to be ordered correctly

thanks for confirming, thought maybe my imagination

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [August 25, 2025, 8:52pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/162 "2025-08-25T20:52:43Z")

</div>

> [@Andrew\_Rowe](#):
>
> I could have sworn the event used to be in chronological order.

There was a bug that would only manifest itself in some cases, for example if a single digit date event was added after a multiple digit date event. So in most cases, it was working properly, but sometimes, like in your screenshot, it would show `31` before `3` within the same month.

This should fix it once it is merged: [FIX: Correctly order events in upcoming events list by pmusaraj · Pull Request #34526 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/34526)

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [August 25, 2025, 10:50pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/163 "2025-08-25T22:50:20Z")

</div>

Thanks Penar! what a great job tracking down such an obscure buggy

Later when the dates changed and it worked properly I thought I was losing it 🤪

---

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [October 10, 2025, 10:42pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/164 "2025-10-10T22:42:54Z")

</div>

A little minimal-gamification-leaderboard tip:

I wanted to add a suffix – e.g. YR, MO, QTR – to the title of the sidebar leaderboard to indicate which timeframe it shows (which is based on the default period set in Gamification):

![image](https://global.discourse-cdn.com/meta/original/4X/8/1/f/81fe9575f04874dd504e14357c2944add2e4866b.png)

But the sidebar gets that block heading directly from the leaderboard title in Gamification. The full leaderboard accessed from the main menu can show several date ranges, so I didn’t want to put a suffix in the title:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/4/8/d4832803313abe194f3d9b7925b96f77e08498c1.png)

I was able to do this with a bit of custom CSS targeting the leaderboard block in the sidebar:

```css
.leaderboard h3::after {
  content: " - QTR";
}

```

(Of course if I change the default leaderboard period, I’ll have to edit the CSS – but that should be rare.)

---

<div class="post-metadata">

### Author: ![Hyteller](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Hyteller](https://meta.discourse.org/u/Hyteller)
#### Post date: [December 19, 2025, 3:44pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/165 "2025-12-19T15:44:58Z")

</div>

@nat @tshenry

What do I need to enter in “Show in routes” to show sidebar on all `/tag/` pages?

Also, and even better, how can I get route of any page?

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [December 19, 2025, 4:27pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/167 "2025-12-19T16:27:46Z")

</div>

> [@Hyteller](#):
>
> What do I need to enter in “Show in routes” to show sidebar on all `/tag/` pages?

 ![example](https://global.discourse-cdn.com/meta/original/4X/e/f/e/efe2bf7543f455a0fb335b1ffd40a5ba93596606.png)

> [@Hyteller](#):
>
> how can I get route of any page?

What kinds of pages are you thinking of?

---

<div class="post-metadata">

### Author: ![Hyteller](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Hyteller](https://meta.discourse.org/u/Hyteller)
#### Post date: [December 19, 2025, 4:28pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/168 "2025-12-19T16:28:54Z")

</div>

> [@nat](#):
>
> What kinds of pages are you thinking of?

Thank you! Any page, of course.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [December 19, 2025, 4:30pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/169 "2025-12-19T16:30:35Z")

</div>

Yeah haha I need to know which pages you’re thinking of so that I can let you know what to fill in. I think not all pages are supported. Below is a good list:

> [@Discourse](#):
>
> Advanced users only: limit sidebar to the selected routes.  
> Examples: discovery.latest, discovery.unread, discovery.new, discovery.top, tag.show, “c/category-slug” (for categories), “tag/sample-tag” (for tags).  
> When empty, the sidebar is shown on all list routes.

---

<div class="post-metadata">

### Author: ![Hyteller](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Hyteller](https://meta.discourse.org/u/Hyteller)
#### Post date: [December 19, 2025, 6:53pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/170 "2025-12-19T18:53:25Z")

</div>

For example, all categories and all topics.

If it’s not supported, I can easily check by trying - the question is, how do you know that categories page is `discovery.categories`, or that all tag pages is `tag.show`? How do I get this route value by myself or at least see full list of routes?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [December 19, 2025, 7:01pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/171 "2025-12-19T19:01:54Z")

</div>

I would use this as a kind of list: [discourse/frontend/discourse/app/routes/app-route-map.js at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/frontend/discourse/app/routes/app-route-map.js). Though I am not convinced this is the type of list you asked for.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [December 19, 2025, 7:04pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/172 "2025-12-19T19:04:11Z")

</div>

> [@Hyteller](#):
>
> How do I get this route value by myself or at least see full list of routes?

It is a little complicated. The reason why it starts mostly with `discovery` is because the sidebar is inserted in an outlet in the `discovery` route here in the core app:

> <https://github.com/discourse/discourse/blob/88ed7d00a2814a7333aacb3d5e2a0d39f9c1760e/frontend/discourse/app/components/discovery/layout.gjs#L59-L62>

Then the following is a check that is done on each page to determine if the blocks should show up:

> <https://github.com/discourse/discourse-right-sidebar-blocks/blob/b71950be8e3d1bb0a9136b21b5285d981fea08da/javascripts/discourse/connectors/before-list-area/tc-right-sidebar.gjs#L28-L45>

And these “routes” are ember routes. @Moin is right by looking at that file, so you can glean off things like:

- discovery.categories
- discovery.hot
- discovery.unread
- discovery.latest

etc. But the examples I quoted above are pretty much the main routes this TC would be useful in.

---

<div class="post-metadata">

### Author: ![Hyteller](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Hyteller](https://meta.discourse.org/u/Hyteller)
#### Post date: [December 19, 2025, 7:06pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/173 "2025-12-19T19:06:37Z")

</div>

> [@Moin](#):
>
> I would use this as a kind of list: [discourse/frontend/discourse/app/routes/app-route-map.js at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/frontend/discourse/app/routes/app-route-map.js). Though I am not convinced this is the type of list you asked for.

> [@nat](#):
>
> It is a little complicated. The reason why it starts mostly with `discovery` is because the sidebar is inserted in an outlet in the `discovery` route here in the core app:

Thanks, guys. Yeah, it is very non-user friendly, but it’s something I can tinker with 🙂

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [December 19, 2025, 7:11pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/174 "2025-12-19T19:11:41Z")

</div>

The theme component is made only to show up in places where there is a list of topics.

 ![Screenshot 2025-12-20 at 3.08.57 AM](https://global.discourse-cdn.com/meta/original/4X/8/5/b/85b7466e2b1455c772dd43fe96c11a0e5742e481.jpeg)

So I think the list in the description is actually pretty much all we get.

 ![desc](https://global.discourse-cdn.com/meta/original/4X/1/a/1/1a1c662fdecf9d6d06e5ffd964289ed490d93a43.png)

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [January 5, 2026, 10:22pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/175 "2026-01-05T22:22:10Z")

</div>

> [@Hyteller](#):
>
> the question is, how do you know that categories page is `discovery.categories`, or that all tag pages is `tag.show`? How do I get this route value by myself or at least see full list of routes?

I usually just log the routes to the console. You could use a simple theme component I personally use for that: [Manuel Kostka / Discourse / Helpers / Development · GitLab](https://gitlab.com/manuelkostka/discourse/helpers/development)

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [January 13, 2026, 1:10pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/176 "2026-01-13T13:10:45Z")

</div>

How to display the right sidebar on the topic page?

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [January 13, 2026, 1:37pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/177 "2026-01-13T13:37:45Z")

</div>

In the admin setting admin → right sidebar blocks → show in routes

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/9/d/49de06a295d3d13ac58b8c60d07892303059506d.png)

just add the route you wish the sidebar to show in 👍

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [January 13, 2026, 1:55pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/178 "2026-01-13T13:55:38Z")

</div>

What is the route for every topic page?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [January 13, 2026, 3:02pm UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/179 "2026-01-13T15:02:56Z")

</div>

> [@xu2](#):
>
> What is the route for every topic page?

just leave it default blank

> [@Discourse](#):
>
> show in routes:  
> …  
> When empty, the sidebar is shown on all list routes.

[Previous page](https://meta.discourse.org/t/right-sidebar-blocks/231067.md?page=7)

[Next page](https://meta.discourse.org/t/right-sidebar-blocks/231067.md?page=9)
