fix(match2): broken links in valorant map veto display#7596
fix(match2): broken links in valorant map veto display#7596ElectricalBoy wants to merge 2 commits into
Conversation
hjpalpha
left a comment
There was a problem hiding this comment.
could potentially throw if a "game" is used that is not set in module imfo
can test later this week (only on mobile today)
map infobox already includes Lua-Modules/lua/wikis/commons/Infobox/Map.lua Lines 116 to 127 in 64f0ccd Lua-Modules/lua/wikis/commons/Infobox/Map.lua Lines 163 to 169 in 64f0ccd |
there are exceptions |
I don't see how the linked page is relevant to this PR? |
ah right we don't use this |
|
Seems like worldoftanks would like the same treatment: https://discord.com/channels/93055209017729024/372075546231832576/1511717722977734766 |
Summary
Lua-Modules/lua/wikis/commons/MatchSummary/Base.lua
Lines 327 to 329 in 64f0ccd
Lua-Modules/lua/wikis/valorant/MatchSummary.lua
Line 47 in 64f0ccd
The
game = match.gameoption passed intoMatchSummary.preProcessMapVetocaused the returned links to have/valappended to the returned link. This wasn't a problem until #7586 as the link was never used for display due to key inconsistency (see #7586 (comment)).This PR fixes the above issue by adding a LPDB map check, similar to how match pages handle map veto.
How did you test this change?
dev