diff --git a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua index 32b3367f746..14feb3c18bb 100644 --- a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua +++ b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua @@ -247,9 +247,9 @@ function MatchFunctions.getHeadToHeadLink(match, opponents) return (tostring(mw.uri.fullUrl('Special:RunQuery/Match_history')) .. '?pfRunQueryFormName=Match+history&Head_to_head_query%5Bplayer%5D=' - .. opponents[1].players[1].name + .. opponents[1].match2players[1].name .. '&Head_to_head_query%5Bopponent%5D=' - .. opponents[2].players[1].name + .. opponents[2].match2players[1].name .. '&wpRunQuery=Run+query'):gsub(' ', '_') end diff --git a/components/match2/wikis/warcraft/match_group_input_custom.lua b/components/match2/wikis/warcraft/match_group_input_custom.lua index f7bf9423301..d519ad1d3de 100644 --- a/components/match2/wikis/warcraft/match_group_input_custom.lua +++ b/components/match2/wikis/warcraft/match_group_input_custom.lua @@ -247,9 +247,9 @@ function MatchFunctions.getHeadToHeadLink(opponents) return (tostring(mw.uri.fullUrl('Special:RunQuery/Head-to-Head')) .. '?pfRunQueryFormName=Head-to-Head&Head+to+head+query%5Bplayer%5D=' - .. opponents[1].players[1].name + .. opponents[1].match2players[1].name .. '&Head_to_head_query%5Bopponent%5D=' - .. opponents[2].players[1].name + .. opponents[2].match2players[1].name .. '&wpRunQuery=Run+query'):gsub(' ', '_') end