Don't ask how I came across this one, it's a strange one, to reproduce,
This only happens in Firefox as far as I can tell,
Open a topic via ajax from a category, close the tab with ctrl + w or with the X on the tab, press Ctrl Shift & T to reopen that tab. Hold the back button on the browser and click the first link that takes you back to the category where you came from.
You get this:
However the URL is that of thr category. 👍
It actually looks quite nice, but should probably be an option if people ask, and not a bug. 😆 (Would tie in nicely with the related posts issue that's on Github)
There seems to be some kind of mismatch here. I'm watching two categories (General and Development); there's a "1 unread topic" bubble, but when I go to https://community.nodebb.org/unread, I get a "no unread topics" message.
Probably a very small error somewhere, but worthy of correcting.
It's gone away on its own after posting this thread -- but it shouldn't have been in that state to begin with, right?
The problem was I was deleting tags that no longer had topics but was doing it in the wrong place. If a user couldn't see any topics the code was deleting the tag. I moved it up to actually check the tids and not the topics the user can see.