@Milimetric reported that the $returnToQuery = 'accountJustCreated=1'; code added in rEGREa1df3b881a8638071d180a38a8994de02a663909 is buggy and he’s not able to get a wgTKAccountJustCreated = "1" on the first page load after account creation.
Steps to replicate the issue (include links if applicable):
- Go to Special:CreateAccount in testwiki (make sure no returnto param is present in the URL)
- Place a breakpoint on line 7 of WikimediaEvents/modules/ext.wikimediaEvents/accountCreation.js where we check mw.config.get( 'wgTKAccountJustCreated' )
- Observe null , the correct value should be "1"
What happens?:
There's no "account just created" signal on the first page load (Special:WelcomeSurvey) after account creation
What should have happened instead?:
mw.config.get( 'wgTKAccountJustCreated' ) should be set with a value of "1"
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Introduced in wmf/1.46.0-wmf.19
Other information (browser name/version, screenshots, etc.):