Redirect the user to the wiki where the event registration was created, in case the user is in another wiki.
This is needed for when we deploy our extension to other wikis.
Ac:
- Participant and Organizers should be redirected when needed to the page where the event registration was created, in case they are in another wiki.
- In case the user is being redirected to another wiki, inform the user before the redirect.
Organizer Scenarios:
Scenario 1: Organizer goes to Special:EventDetails/{id}
Given the organizer goes to Special:EventDetails/{id}
If the event is from another wiki
Then the organizer should be redirected to Special:EventDetails/{id} on the wiki where the event was created
Scenario 2: Organizer goes to Special:EditEventRegistration/{id}
Given the organizer opens Special:EditEventRegistration/{id}
If the event is from another wiki
Then the organizer should be redirected to Special:EditEventRegistration/{id} on the wiki where the event was created
Scenario 3: Organizer goes to Special:DeleteEventRegistration/{id}
Given the organizer opens Special:DeleteEventRegistration/{id}
If the event is from another wiki
Then the organizer should be redirected to Special:DeleteEventRegistration/{id} on the wiki where the event was created
Participants Scenarios
Scenario 1: Participant goes to Special:CancelEventRegistration/{id}
It does not need to be redirected to the same wiki of the event page, because this page sends the event ID, which is global, and we also use the global user ID
Scenario 2: Participant goes to Special:/Special:RegisterForEvent/{id}
It does not need to be redirected to the same wiki of the event page, because this page sends the event ID, which is global, and we also use the global user ID
Scenario 3: "View event page" button on Special:EventDetails/{id}
If the user is not in the same wiki of the event page, the user will be redirected to the event page on another wiki, the redirect is not to Special:EventDetails/{id} of the wiki where the event was created, but to the event page, because this action is to see the event page.