Page MenuHomePhabricator

Editing a global user page outside of meta shouldn't result in an edit to a local page
Closed, DeclinedPublic

Description

I made an edit to https://commons.wikimedia.org/wiki/User:Pine to add a category, and was surprised to see that this edit replaced Pine's userpage with just that category (sorry Pine!). It looks like this was because Pine has a global userpage on Meta ( https://meta.wikimedia.org/wiki/User:Pine ) that was replaced by my local edit.

This shouldn't happen. An edit to a global user page on a local wiki should result in either:
a) A warning notice explaining that this is a global user page, and that it shouldn't be edited on this wiki
b) A redirect to the user page on meta
c) The edit being redirected to meta-wiki, and taking place there
d) The edit on the local wiki being applied to the global page, rather than replacing that global page.

Please can the UI be improved/fixed here?

Event Timeline

Mike_Peel raised the priority of this task from to Needs Triage.
Mike_Peel updated the task description. (Show Details)
Mike_Peel added a project: MediaWiki-General.
Mike_Peel added subscribers: Mike_Peel, Pine.

a) already happens, on https://test.wikipedia.org/w/index.php?title=User:Legoktm&action=edit it says "This page currently displays a user page from another wiki. If you create a new page here, it will no longer display the other wiki′s page."

a) already happens, on https://test.wikipedia.org/w/index.php?title=User:Legoktm&action=edit it says "This page currently displays a user page from another wiki. If you create a new page here, it will no longer display the other wiki′s page."

OK, thanks, is this coming soon to a non-test wiki?

Hmm, ok. Looking into this some more, it seems that this happened because I made the edit through HotCat, which bypasses the standard edit page. Sorry, Legoktm for doubting you here!

HotCat's fault, not the Gadget extension's.

MediaWiki-extensions-Gadgets isn't the place to tag bugs with gadgets?

That's correct.

OK, that's not obvious!

It should go without saying. Don't bother reporting issues to developers who aren't responsible for the code you're having issues with.

It should go without saying. Don't bother reporting issues to developers who aren't responsible for the code you're having issues with.

It shouldn't go without explanation.

Ok so back to the bug...

a) A warning notice explaining that this is a global user page, and that it shouldn't be edited on this wiki

Already in place, Gadgets will skip it, but we can't do much about that...

b) A redirect to the user page on meta

We could hijack the edit tab to point to meta if that's what you mean? It might be a weird UX suddenly switching wikis..maybe implementing the tabs like https://en.wikipedia.org/wiki/File:Example.svg ?

c) The edit being redirected to meta-wiki, and taking place there

There are legit reasons to edit/create a local override, so I don't think this makes sense.

d) The edit on the local wiki being applied to the global page, rather than replacing that global page.

Same as c).

So the only actionable one is b)? Is it worth pursuing?

Aklapper claimed this task.
Aklapper edited projects, added WMF-General-or-Unknown; removed GlobalUserPage.

Closing as https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-HotCat.js#HotCat_and_global_user_pages is marked as "done" and closing as declined as this on-wiki territory.