Lucas_Werkmeister_WMDE added a comment.
Hm, there’s an interesting nuance here that I only realized while writing T357152 <https://phabricator.wikimedia.org/T357152>. Suppose you’re an API user who’s using `wbeditentity` to create a new entity (e.g. with `new=item`), and you would like to redirect the user to the newly created entity after the edit is done. What do you set the `returnto` parameter to? You can’t set it to the title of the entity that’s going to be created, because you don’t yet know which entity ID the repo will assign… IMHO it would be reasonable for `wbeditentity` to let the `returnto` parameter default to the title of the newly created entity if it wasn’t specified. (Otherwise, CentralAuth would default to the main page; if someone really desperately wants the user to be redirected to the main page, they can still put that into `returnto` explicitly.) I thought about instead treating the empty string special, or something similar, but then we have to mess with the way the parameter is validated by the API, because by default it has to be a valid title. TASK DETAIL https://phabricator.wikimedia.org/T357024 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Aklapper, Lydia_Pintscher, Lucas_Werkmeister_WMDE, Danny_Benjafield_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, kostajh, Lahi, Gq86, GoranSMilovanovic, QZanden, KimKelting, LawExplorer, JJMC89, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331, Ltrlg
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org