ראה # נושאים חדשים או מעודכנים

סיכום מבוסס בינה מלאכותית

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 function david. 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 #14431 jean.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?

2 לייקים

This seems like a bug to me, I don’t think we usually show the updated topic banner on category pages?

Probably related to

https://github.com/discourse/discourse/commit/ed0b6a3660416c1fb9c0b541cdf43689980c23e9

cc @jean.perez

3 לייקים

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.

2 לייקים

Could we make it work even when Categories is not the homepage? It seems quite useful!

At Categories - Discourse Meta I see the same issue as @Slowhand. This is the error I get in the JS console when clicking the banner:

_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)
3 לייקים

Yes, I will work on it. The weird thing is that this works for me, even here on Meta. What browser are you using?

Thanks, this gives me a pretty good hint.

I’m using latest Chrome on latest macOS

לייק 1

I’m using Chrome (up to date) on Windows 10 PC (also up to date)

לייק 1

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)

2 לייקים

This PR should solve the issue. Thank you all for reporting it and help me figure out the problem.

https://github.com/discourse/discourse/pull/14431

7 לייקים

This topic was automatically closed after 13 hours. New replies are no longer allowed.