Page MenuHomePhabricator

The Wikipedia Library notification doesn't mark as read when clicked
Open, Needs TriagePublic

Description

As reported in T295621, this notification is one of (if not the only) notifications which directly takes the user away from a MediaWiki project. As such, the default way of marking the notification as read doesn't work.

Users are sent to a URL like https://wikipedialibrary.wmflabs.org/?markasread=4013139&markasreadwiki=metawiki. The query parameters would mark the notification as read if the destination was another Wikimedia project, but don't do anything on the Library Card platform.

We should investigate how to mark the notification as read when clicked.

Per @Legoktm: "Another option could be to add TWL to the Interwiki map and use links like https://meta.wikimedia.org/wiki/Special:GoToInterwiki/google:foo to provide an interstitial and have the markasread query parameters work."

Event Timeline

The interwiki link option seems to be the best one, but we're waiting on someone to action our request, per T296096.

Tgr added a subscriber: Tgr.

You can use the action=echomarkread API. Using the interstitial is simpler though.