Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Notifications sometimes stay unread after clicking

Parent

Notifications sometimes stay unread after clicking

+5
−0

I noticed that sometimes when I click notifications, they keep reappearing after I refresh. If I refresh several times, and click several times, eventually it "sticks" and they become read. I don't think it makes a difference to open in current tab vs. new tab. I'm not sure about exact steps to reproduce, but it happens very often to the point where I don't "need" to reproduce it.

I use Firefox fork with many privacy addons, I won't list them all here. I think it would be more useful to figure out what specifically is required for this bug to not happen, so that people can adjust their set up accordingly.

  1. Does anyone else experience this?
  2. What causes it?

I assume that when I click on the notification, some kind of request is sent to the CD API to the tune of "mark notification 123 as read". You'd think that this would either work or not. What could possibly make it work sometimes?

Kind of a dupe of https://meta.codidact.com/posts/275896, but that question has less detail, no activity since 3 years, and the asker has not been active in 2 years.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Different but related bug (1 comment)
I have the same identical problem, also with Firefox and a lot of security add-ons. (2 comments)
Post
+2
−0

I suspect the add ons and fork mentioned are not relevant. I see a persistent notification circle on standard Firefox with no add ons. It doesn't seem to be completely consistent but the general behaviour I see is as follows:

  • I see a blue circle indicating I have a notification.
  • I open the notifications panel and click on the notification.
  • The relevant page opens, showing the answer or comment the notification referred to.
  • The blue circle is still present at the top of the page and the notification is still marked as unread.
  • If I open the notifications panel while already on this destination page, clicking on the notification takes me to the answer or comment (which does not involve changing to a different page) and the blue circle disappears and the notification is marked as read.

Note that this behaviour when already on the destination page seems to depend on it being the exact destination (so the URL of the answer to a question if the notification referred to that answer - the URL of the question is not sufficient). This makes me wonder if it is the lack of requirement for a page load that allows the functionality to work, and a page load suppresses it, causing the mark as unread to fail.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Blue circle with no digit? (4 comments)
Blue circle with no digit?
matthewsnyder‭ wrote over 1 year ago

I occasionally see this also - a blue circle with no number in it. Although I think sometimes the circle loads before the number.

To be clear, the bug in my OP always goes away after clicking on the notification 2-5 times.

trichoplax‭ wrote over 1 year ago · edited over 1 year ago

No, I see the correct number in the blue circle (generally 1 unless I've been away for a while).

When you click on the notification multiple times, is this from a page other than the destination? For me, it goes away first click if I am on the page it leads to (exact URL, not just the same question page). From another page, I can click more than 5 times without it going away, but that requires navigating away from the page before each click, otherwise I would be on the destination page after the first click.

matthewsnyder‭ wrote over 1 year ago

I never paid attention to where I click from.

So are you saying that a notification for page XYZ only goes away if I'm already on XYZ? I'll try to keep an eye out for that.

trichoplax‭ wrote over 1 year ago

Yes that's what I see, on Firefox for mobile or desktop. Haven't yet tested with other browsers.