Wikimedia
Mobile talk page editor fails if the talk page is a redirect
- This task is about MediaWiki's MinervaNeue skin.
- For more info about talk pages in MediaWiki: https://www.mediawiki.org/wiki/Help:Talk_pages
- For more info about redirects in MediaWiki: https://www.mediawiki.org/wiki/Help:Redirects
When I visit https://en.m.wikipedia.org/wiki/Module:ITN_candidate/image#/talk/2 and try to add a message I get the following error:
{"servedby":"mw1227","error":{"code":"nosuchsection","info":"There is no section 2.","*":"See https://en.wikipedia.org/w/api.php for API usage"}}
Using:
action:edit
format:json
title:Module talk:In the news/image
section:2
appendtext:
The talk overlay is not getting the canonical name of the talk page. It assumes it will be prefixed with Module talk
which is not the case.
Instead of doing this we should probably ship the talk page name as a config variable using Title::getTalkPage
(I'm surprised there wasn't one) or make use of new mw.Title(mw.config.values.wgTitle, mw.config.values.wgNamespaceNumber
)
You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.
Task tags
Students who completed this task
Yifei He