Page MenuHomePhabricator

research links, where do the urls come from (incl `returnto` params)
Closed, ResolvedPublic

Description

  • for "login"
  • for "sign up"

Notes

  • needs to work in client only

Event Timeline

In file MobileFrontend/src/mobile.editor.overlay/EditorOverlay.js:

LN 270: The url is build by mw.util.getUrl( 'AnyIdentifier', params )

LN 253ff: The parameter are set, which are
returnto (current page)
returntoquery (current page [target]parameter)
warning ( a message which seems to be unused currently )
type?='signup' ( to tell special page we need to be redirected to the signup form )

I think this might refer to a much older version of MobileFrontend I looked in the current master and found as follows:
The create anonymous edit warnning is built here: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/MobileFrontend/+/199dad4243045af2dc9be90b1dddab09069f978c/src/mobile.editor.overlay/EditorOverlayBase.js#523

mw.util.getUrl( 'Special:UserLogin') Is used to find both the login and signup page. The signup page additionally sets the URL param type='signup'

The returnto parameter that is built uses mw.config.get( 'wgPageName' ) as the default.

Anyway, looks like sufficient research is done! Woo!