Moved post notification not dismissing when clicked

AI-generated summary

Users reported a bug where clicking a ‘moved post’ notification dismisses it temporarily, but it reappears highlighted in blue upon page reload. DeanMarkTaylor initiated the discussion, noting the issue persists in version 1.2.0.beta4. Mittineague mentioned this has been an issue for a long time, with the only workaround being to use “Mark all as Read.” AdamCapriola referenced a similar report from 2014, and codinghorror confirmed the problem remains unresolved.

While tgxworld suggested a recent fix by sam, codinghorror remained skeptical. Ultimately, sam confirmed the issue is resolved. He explained that the fix involves setting a header on the next AJAX call and updating a cookie to ensure notifications always clear correctly.

Clicking the moved post(s) notification initially dismisses it and loads the linked staff post…
… but if you reload the page - the notification is still there highlighted in blue.

5 лайков

This has come up before, and I think there was a fix attempted, but I guess it wasn’t enough? Or the other report is still open.

It has been this way for as long as I remember.
We have ver. 1.2.0.beta4 so unless it’s been fixed another way since, the current way to clear the Move Notifications is to use
“Mark all as Read”

1 лайк

There was a report of this back in August '14:

https://meta.discourse.org/t/notifications-not-clearing-properly-unless-visited-from-menu/19041/7?u=adamcapriola

Didn’t exactly have its own topic though.

Yep this is still a problem and we should fix it.

2 лайка

@sam I think you fixed this with the recent changes to notifications? I can’t repro on development.

Are these all you?? @sam_saffron_soc @sam_saffron_ame

Seems like this has regressed.

I’m not sure this was ever fixed TBH

1 лайк

I’ll take a look at it soon.

Pretty sure this is still a bug. Not high priority, but there.

1 лайк

Nope, this is no longer a bug, I fixed this and every other instance where blue does not clear.

We set a header on the next ajax call to clear it AND a cookie, so yeah … stuff will clear … always.

5 лайков