Page MenuHomePhabricator

PLACEHOLDER: Accept interwiki links in the create/edit registration form
Open, Needs TriagePublic

Description

So that users can reference a page on another wiki. Currently blocked on T306713, and more specifically its WMF counterpart T179457; possibly T307107 too.

Event Timeline

Note, there's also an alternative implementation: instead of having a single field that accepts interwikis, we could have two fields, a wiki selector (text + dropdown) and a title field. The wiki would be determined by the first field, and the second one would be just for the title, without the interwiki prefix. This would also work better if the interface is moved out of MW. One thing I don't know is how hard it would be to build the wiki selector, and whether one is already available.

I think we should do it different, we could redirect the user to the wiki of the event page, this way we do not need to worry about interwiki, would be something like:

On the events list page we can list events from any wiki, but when the user clicks on the link to edit it, for example, we redirect the user to the edit event registration page" on the same wiki of the event page.
On the "Create event registration" page we could show a message to inform that the event page the user is trying to create a registration belongs to another wiki (if the user try to do that) and maybe a link to the right wiki so can create the event registration in the same wiki of the event page (which I think will be an edge case).

I think we should do it different, we could redirect the user to the wiki of the event page, this way we do not need to worry about interwiki, would be something like:

On the events list page we can list events from any wiki, but when the user clicks on the link to edit it, for example, we redirect the user to the edit event registration page" on the same wiki of the event page.
On the "Create event registration" page we could show a message to inform that the event page the user is trying to create a registration belongs to another wiki (if the user try to do that) and maybe a link to the right wiki so can create the event registration in the same wiki of the event page (which I think will be an edge case).

We're almost doing that already. The main difference would be adding a link to the wiki where the event can be edited

Discussed: this implementation would be beyond V2 since it would require a core change