Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPA-6687: Pagenames should be stored with _ and not spaces #1802

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
5 changes: 4 additions & 1 deletion components/match2/commons/player_ext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ function PlayerExt.populatePageName(player)
or globalVars:get(player.displayName .. '_page')
or player.displayName and mw.ext.TeamLiquidIntegration.resolve_redirect(player.displayName)

player.pageIsResolved = player.pageName and true or nil
if player.pageName then
player.pageIsResolved = true
player.pageName = player.pageName:gsub(' ', '_')
end
end

--[[
Expand Down