Last modified: 2014-11-19 04:01:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55774, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53774 - mw.config doesn't expose page existence information about the target of a special page
mw.config doesn't expose page existence information about the target of a spe...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.22.0
All All
: Normal minor with 1 vote (vote)
: 1.25.0 release
Assigned To: Alex Monk
:
Depends on:
Blocks: 66885 49000
  Show dependency treegraph
 
Reported: 2013-09-04 20:03 UTC by James Forrester
Modified: 2014-11-19 04:01 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2013-09-04 20:03:53 UTC
For special pages, no information about page existence is exposed to mw.config, which means that VisualEditor is forced to assume it exists regardless.
Comment 1 Gerrit Notification Bot 2013-09-04 20:08:03 UTC
Change 82744 had a related patch set uploaded by Jforrester:
Reference core bug 53774 in bug 49000 comment

https://gerrit.wikimedia.org/r/82744
Comment 2 Gerrit Notification Bot 2013-09-05 04:55:54 UTC
Change 82744 merged by jenkins-bot:
Reference core bug 53774 in bug 49000 comment

https://gerrit.wikimedia.org/r/82744
Comment 3 db [inactive,noenotif] 2013-09-08 09:14:40 UTC
There is wgCanonicalSpecialPageName set, when you are on a special page.
Comment 4 db [inactive,noenotif] 2013-11-09 21:23:26 UTC
(In reply to comment #3)
> There is wgCanonicalSpecialPageName set, when you are on a special page.

-> WORKSFORME
Comment 5 Alex Monk 2014-06-23 19:44:59 UTC
This bug is about giving existence information for the relevant article (i.e. the article that the special page is working on). See bug 66885
Comment 6 Umherirrender 2014-07-02 05:51:04 UTC
Sounds like you need the js variable 'wgIsProbablyEditable' or 'wgIsArticle' according to page under 'wgRelevantPageName' or a new variable 'wgRelevantIsProbablyEditable'/'wgRelevantIsArticle' to cover this.
Comment 7 Alex Monk 2014-10-20 19:37:29 UTC
'wgRelevantArticleId' => WikiPage::factory( $relevantTitle )->getId() perhaps?

I'm not sure we want to introduce new variables here though...
Comment 8 Gerrit Notification Bot 2014-10-29 01:18:53 UTC
Change 169639 had a related patch set uploaded by Alex Monk:
Expose ID of relevant page in JS variables

https://gerrit.wikimedia.org/r/169639
Comment 9 Gerrit Notification Bot 2014-11-19 04:01:54 UTC
Change 169639 merged by jenkins-bot:
Expose ID of relevant page in JS variables

https://gerrit.wikimedia.org/r/169639

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links