Users reported a bug where the “See # new or updated topics” banner appears on category pages (e.g., meta.discourse.org/categories) but is non-functional — clicking it triggers a JavaScript error: this.model.loadBefore is not a functiondavid. While Slowhand and david experienced the issue on Chrome (Windows 10 and macOS respectively), jean.perez noted it worked for them, suggesting a possible context-dependent bug — perhaps triggered when navigating via Ember links rather than direct visits david. awesomerobot questioned whether the banner should appear on category pages at all, since it was originally intended for customer homepages using “Categories and latest topics”. jean.perez agreed to restrict it to that homepage layout initially, but later committed to making it work universally after david highlighted its utility. A fix was submitted via PR #14431jean.perez.
This is not happening on my forum, only here on Meta.
I see a message at the top to “See (number) new or updated topics” and it appears to be clickable, but I cannot click on it.
In the screenshot below, it says there are 7 new or updated topics, and I can see that there are 2 new topics. Is this supposed to be clickable? And if not, what’s the purpose?
This was requested by a customer but for their homepage. I will modify this so it only works when you use the categories and latest topics as your homepage.
_application-c2a0db4315cc80bfd24dd0b2344da96b.js:2135 Uncaught TypeError: this.model.loadBefore is not a function
at n.showInserted (_application-c2a0db4315cc80bfd24dd0b2344da96b.js:2135)
at n.send (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:2198)
at _vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:1177
at o (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:2785)
at _vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:1177
at e.n._run (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:4034)
at e.n._join (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:4033)
at e.n.join (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:3999)
at f (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:2870)
at e.t.handler (_vendor-4a6fd1a2419a7fc9ac9b367a3ed0e00d.js:1176)
Interestingly, when I visited meta.discourse.org/categories in a fresh tab, the banner worked. But when I visit /categories via a link from somewhere else in the Ember app, the error occurs.
(I haven’t rigorously tested that idea, so it could be totally wrong)