ApiCreateTempUserTrait builds a redirect URL to allow central logging in. It also adds params for specifying where to return to after logging in.
protected function getCreateTempUserParams(): array { return [ 'returnto' => [ ParamValidator::PARAM_TYPE => 'title', ], 'returntoquery' => [ ParamValidator::PARAM_TYPE => 'string', ParamValidator::PARAM_DEFAULT => '', ], 'returntoanchor' => [ ParamValidator::PARAM_TYPE => 'string', ParamValidator::PARAM_DEFAULT => '', ], ]; }
We should add the documentation messages to these specs: apihelp-edit-param-returnto, apihelp-edit-param-returntoquery, apihelp-edit-param-returntoanchor.