Strange behavior of the navigation by clicking on the (none) category

AI 生成的摘要

Strange behavior of the navigation by clicking on the (none) category

A user, oganer, reported a bug where clicking on the (none) category twice results in different pages being displayed. The expected behavior is to show topics assigned only to the first-level category, but instead, it shows all topics.

codinghorror initially thought the issue was related to the topic excerpt not displaying, but oganer corrected him, pointing out the inconsistency.

The bug was confirmed by fhe and joffreyjaffeux agreed to fix it. joffreyjaffeux provided a fix by preventing the (none) category from being displayed if the user is already on it. Although this fix doesn’t exactly resolve the issue, it prevents the bug from occurring. The fix can be found in this commit.

Hi, i found strange behavior of the navigation by clicking on the (none) category.

Here is the way to reproduce it

  1. Follow to Extras - Discourse Meta
  2. click on (none) category
  3. click again on (none) category

You will see that pages on 2. and 3. steps are different.

  1. step

  1. step

1 个赞

There is already a bug on this, the only difference is the topic excerpt for the pinned topic does not display, yes? Other bugs on this, same thing.

Sorry not sure that i understood you correctly.

  1. I thought that (none) category should display topics which assigned only to first level categories (extensibility). But on the step 3. displaying (all) topics which assigned to (plugin) os (sso)
  2. Anyway double visiting same page should lead to same results, isn’t it?

Oh my bad, you are correct. I should have looked closer.

1 个赞

I was about to report the very same issue (the excellent search function brought me here). The bug is still present in latest Discourse (2.0.0beta10).

So what I see here is that the second click on none is basically doing a “all” instead of a “none”. Will see if I can fix this.

1 个赞

This should be fixed by:

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

While it’s not exactly fixing the issue, it will not show “none” anymore if you already are on none, preventing this issue from happening.

7 个赞

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