The GeoHack links generated by https://www.wikidata.org/wiki/MediaWiki:Gadget-AuthorityControl.js always use Earth as the globe. It seems from the comment /* BUG: .getGlobe() returns Q2 always */ in the code that this is known, but I couldn't find a ticket for it.
For example, https://www.wikidata.org/wiki/Q3055620 mentioned on https://www.wikidata.org/wiki/Wikidata:Project_chat#Error_with_extraterrestrial_coordinate_locations_.28P625.29 links to https://tools.wmflabs.org/geohack/geohack.php?language=en¶ms=47.5_N_210_E_globe:earth even though the globe is set to Q111 (Mars).