Page MenuHomePhabricator

Anonymous editor warning login link doesn't include returnto parameter
Closed, ResolvedPublic8 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The corresponding link does not include the returnto parameter, which means that the editor will not automatically return to the item after logging in/creating an account.

What should have happened instead?:
The corresponding link should've included the returnto parameter, and then the editor would automatically be taken to the item after logging in/creating an account.

Notes
Please replicate this on Special:NewLexeme page as well so that it works across both item pages and special pages.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptFeb 25 2023, 5:27 AM

Change 910719 had a related patch set uploaded (by EpicPupper; author: EpicPupper):

[mediawiki/extensions/Wikibase@master] Add returnto parameter to anonymous editor warning login link

https://gerrit.wikimedia.org/r/910719

Lydia_Pintscher subscribed.

Thank you for the patch! We will review it.

Based on what we found during review, I think this should be moved out of our sprint, and probably also no longer have the good first task tag. Itโ€™s not impossible to implement (the best approach is probably to build the full URL with returnto parameter in PHP and JS, then pass it as a parameter into the message), but itโ€™s not as simple as we initially thought.

Based on what we found during review, I think this should be moved out of our sprint, and probably also no longer have the good first task tag. Itโ€™s not impossible to implement (the best approach is probably to build the full URL with returnto parameter in PHP and JS, then pass it as a parameter into the message), but itโ€™s not as simple as we initially thought.

Looking into this a bit too, I agree with Lucas. This would be the files directly affected by modifying that message, there are uses in Wikibase and WikibaseLexeme: https://codesearch.wmcloud.org/things/?q=wikibase-anonymouseditwarning&files=.*%5C.%28php%7Cjs%7Cts%29%24&excludeFiles=&repos=

The new Termbox already has the required returnto parameters. The respective warning in EntitySchema is very simple and does not include links.

Task breakdown notes:

Michael moved this task from Doing to Todo/Backlog on the Wikidata Dev Team (Sprint-โˆž) board.

Change 955689 had a related patch set uploaded (by Michael GroรŸe; author: Michael GroรŸe):

[mediawiki/extensions/WikibaseLexeme@master] Add anon edit warning link parameters

https://gerrit.wikimedia.org/r/955689

Change 955690 had a related patch set uploaded (by Michael GroรŸe; author: Michael GroรŸe):

[mediawiki/extensions/Wikibase@master] Add anon edit warning link parameters

https://gerrit.wikimedia.org/r/955690

Change 955691 had a related patch set uploaded (by Michael GroรŸe; author: Michael GroรŸe):

[mediawiki/extensions/Wikibase@master] anonymouseditwarning: params for links to login and create account

https://gerrit.wikimedia.org/r/955691

Change 957754 had a related patch set uploaded (by Michael GroรŸe; author: Michael GroรŸe):

[mediawiki/extensions/WikibaseLexeme@master] Bump special-new-lexeme to add returnto params for anon edit warning

https://gerrit.wikimedia.org/r/957754

The GitHub PR has been merged, all other changes are ready for review on Gerrit.

Change 955690 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add anon edit warning link parameters

https://gerrit.wikimedia.org/r/955690

Change 957950 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Fix AnonymousEditWarningBuilderTest on non-English wikis

https://gerrit.wikimedia.org/r/957950

Change 957950 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fix AnonymousEditWarningBuilderTest on non-English wikis

https://gerrit.wikimedia.org/r/957950

Change 955689 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Add anon edit warning link parameters

https://gerrit.wikimedia.org/r/955689

Change 957958 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Use full title for special page returnto URLs

https://gerrit.wikimedia.org/r/957958

Change 957754 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Bump special-new-lexeme to add returnto params for anon edit warning

https://gerrit.wikimedia.org/r/957754

Change 957958 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use full title for special page returnto URLs

https://gerrit.wikimedia.org/r/957958

Change 955691 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] anonymouseditwarning: params for links to login and create account

https://gerrit.wikimedia.org/r/955691

Can now be reviewed on beta wikidata.

Arian_Bozorg subscribed.

This looks good to me :)

Thanks so much

Change 910719 abandoned by Lucas Werkmeister (WMDE):

[mediawiki/extensions/Wikibase@master] Add returnto parameter to anonymous editor warning login link

Reason:

done in other changes, see task

https://gerrit.wikimedia.org/r/910719