Last modified: 2009-10-14 20:35:58 UTC
The javascript variable wgCanonicalSpecialPageName is set wrong on pages named like special pages. Look at [[mw:Manual:Watchlist]]: wgCanonicalSpecialPageName="Watchlist", wgTitle="Watchlist" but we are not an the watchlist ([[mw:Special:Watchlist]]) that breaks js with only look for the canonical name.
Should the variable be always defined and false, or only defined when in ns_special namespace?
Hmm, honestly it should be safe to just drop it when not on a special page... undefined var should evaluate as false in boolean checks. But if we want to be sticklers, we can leave it in as false -- that's current behavior (when not on a page that happens to share a special page name ;)
Created attachment 6669 [details] Fix leaving wgCanonicalSpecialPageName as false for normal pages
Fixed in r57721.