Bug? Il componente del tema discourse-category-banner a volte non visualizza il banner

Wow, pensavo di essere pazzo finché non ho capito esattamente quando succede…

Ecco un banner di categoria. Questa è una categoria che chiunque (inclusi i visitatori anonimi) può vedere. Ottengo questo banner se seleziono la categoria dal menu a discesa delle categorie nella navigazione del sito e se clicco su un’etichetta/casella di categoria sotto il titolo di un argomento. Che è esattamente quello che ci si aspetterebbe che accada:

Ma ho quest’altra categoria che ha una qualche sicurezza basata sui gruppi. In particolare, “chiunque” non può vedere questa categoria. Se navigo in questa categoria (selezionandola dal menu a discesa delle categorie o cliccando sulla casella/etichetta della categoria sotto il titolo di un argomento) non ottengo il banner:

Se semplicemente premo ricarica nel mio browser, allora il banner appare. ¯\\_(ツ)_/¯

Nota che sono loggato come Amministratore. Se impersono un utente normale (un utente di livello 1 che fa parte di un gruppo che gli consente di vedere questa categoria) il comportamento è lo stesso. Naviga alla categoria, nessun banner. Premi ricarica, banner.

??

1 Mi Piace

I can’t reproduce this on my test site?

I’ve installed discourse-category-banners, and created a private category accessible only to a specific group (+ filled out the category ‘about’ info).

When I navigate to the private category it always shows the category banner without needing a refresh.

Is there something else that could be affecting yours? (device, browser, other theme components?)

1 Mi Piace

@craigconstantine
Same. I can confirm. Windows 10, Firefox 93

1 Mi Piace

There’s lots of stuff that could be affecting mine… but without knowing what to look for . . .

But that did make me think to inspect the actual DOM in action… when I don’t see it, the banner is present, but the SPAN is empty. Notice not twist-to-reveal for the SPAN…

Once I press reload though, now the SPAN has a child DIV etc.…

1 Mi Piace