Last modified: 2012-03-13 20:40:06 UTC
If I go to a page such as https://en.wikipedia.org/wiki/Special:WhatLinksHere/Example and click on watch I always get "An error occurred while changing your watchlist settings for "[[Special:WhatLinksHere/Example]]"." I don't remember seing this on MW 1.18.
Created attachment 10202 [details] proposed patch AJAX watching did not work on Special:MovePage and Special:WhatLinksHere because the API requests would contain the name of the special page instead of a wiki page's name; adding a configuration variable with that information (and using it when watching pages via AJAX) can fix this problem. At least in Wikimedia's case, logged-in users (who are the only users able to watch pages) bypass the Squid cache, so using the newly introduced variable should not pose a problem.
Created attachment 10203 [details] proposed patch Fixing my patch. MediaWiki still sends 304 Not Modified headers, so the JavaScript would still have to fall back to wgPageName if necessary.
Thanks for the patch! Applied in trunk r113737
Removing patch, need-review keywords