{"shas":[["7af5f30b761d59064f710669e2b656414aef650d","c06bf100f97c400f04a382840b36a5420cfbd54d@dd0e9695-b195-4be7-bd10-2dea1a65a6b6","(bug 27916) Don't prefix wgServer in mw.util.wikiGetlink\n\nThe check is not needed, if wgArticlePath is undefined there's probably a much bigger issue.\n\nThe wgServer doesn't need to be prefixed to the link (if someone really needs it (ie. external tools using the script and somehow defining wgServer in mw.config) they can surely prefix wgServer themselfs.\n\nIn most if not all cases this is used to create anchor tags, which are interprated by browsers relatively to the current window location and in some browsers it even auto-prefixes the current environment when setting the href/src attribute.\n\nI did a grep search for \"wikiGetlink\" in /trunk (including ./extensions), there was one usage that assumed the wgServer prefix. Turned out that was actually a workaround untill this bug was fixed. I remove that workaround ( in mw.util.isMainPage). \n\ngit-svn-id: svn+ssh://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3@87208 dd0e9695-b195-4be7-bd10-2dea1a65a6b6","krinkle"]],"repo":"mediawiki/mediawiki-trunk-phase3","actor":"mediawiki","ref":"refs/heads/master","size":1,"head":"7af5f30b761d59064f710669e2b656414aef650d","actor_gravatar":"a0e5d29554ef2796258bff856df7f59d","push_id":30277177}