Page MenuHomePhabricator

The logout button and the mobile view button contains the markasread parameter
Open, Needs TriagePublic

Description

When I click on a link from the Echo notification it has a parameter markasread. The HTML body contains the following links:

  • //m.wikidata.org/w/index.php?title=Q1234567&markasread=1234567&mobileaction=toggle_view_mobile
  • /w/index.php?title=Special:UserLogout&returnto=Q1234567&returntoquery=markasread%3D1234567

The parameter here are useless because the page is already read.

I suspect a robust way to remove the markasread parameter is a HTTP 302 to the location without the markasread parameter. Then the location manipulation in JavaScript can omitted.

Related Objects

Event Timeline

Fomafix created this task.Sep 22 2016, 7:36 AM
Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptSep 22 2016, 7:36 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The problem still exist. https://www.wikidata.org/wiki/Special:Notifications contains links like https://www.wikidata.org/wiki/Q3938?markasread=123456789&markasreadwiki=wikidatawiki

When you open the link the URL in the address bar get rewritten via JavaScript to https://www.wikidata.org/wiki/Q3938 but the HTML still contains at least the links to logout and the link for mobile view the URL parameter markasread.

Restricted Application added a project: Growth-Team. · View Herald TranscriptApr 17 2019, 7:00 PM