Last modified: 2014-08-20 19:44:24 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 T71805, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69805 - wikibase.sites.getSite('wikidatawiki').getUrlTo() generates TypeError: this is undefined
wikibase.sites.getSite('wikidatawiki').getUrlTo() generates TypeError: this i...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 19:42 UTC by Fomafix
Modified: 2014-08-20 19:44 UTC (History)
1 user (show)

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


Attachments

Description Fomafix 2014-08-20 19:42:36 UTC
wikibase.sites.getSite('commonswiki').getUrlTo()
works and generates
>> "//commons.wikimedia.org/wiki/"

wikibase.sites.getSite('wikidatawiki').getUrlTo()
fails with
>> TypeError: this is undefined

Expected result:
>> "//www.wikidata.org/wiki/"
Comment 1 Fomafix 2014-08-20 19:44:24 UTC
Now it works. Strange.

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


Navigation
Links