Page MenuHomePhabricator

Re-add &wmf_key=minerva to mobile sidebar donate link
Closed, ResolvedPublic1 Estimated Story Points

Description

On the fundraising side, we were distinguishing between donations from the Vector and Minerva sidebars by adding &wmf_key=minerva on the mobile url. This has been removed with the new entry point, is it possible to re-add?

Requirement

Update the mobile sidebar donate link in Minerva to include the query parameter &wmf_key=minerva. This allows fundraising teams to distinguish donations originating from the Minerva skin. The new URL format should append this parameter to all sidebar donation links.

BDD

Feature: Add `wmf_key=minerva` to sidebar donation links in Minerva

  Scenario: Minerva sidebar donate link includes wmf_key parameter
    Given I am viewing a page in the Minerva skin
    When I open the sidebar and click the donate link
    Then the URL includes the parameter `wmf_key=minerva`

Test Steps

Test Case 1: Verify sidebar donate link includes wmf_key=minerva

  1. Visit any page on https://en.m.wikipedia.beta.wmflabs.org using the Minerva skin.
  2. Open the sidebar by tapping the menu icon.
  3. Locate and click the Donate banner or link.
  4. Observe the URL you are redirected to.
  5. AC1: Confirm that the URL contains &wmf_key=minerva in the query string.

Example:

https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en&wmf_key=minerva

QA Results - Beta

ACStatusDetails
1T391025#10754110

QA Results - Prod

ACStatusDetails
1T391025#10793976

Event Timeline

ovasileva edited projects, added Web-Team; removed Web-Team-Roadmap.
LMora-WMF lowered the priority of this task from High to Medium.Apr 14 2025, 2:57 PM
LMora-WMF raised the priority of this task from Medium to High.

Change #1137313 had a related patch set uploaded (by LorenMora; author: LorenMora):

[mediawiki/extensions/WikimediaMessages@master] wmf_key=minerva

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

Change #1137313 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] wmf_key=minerva

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

@Pcoombe a question I asked in gerrit, but I'll follow up here - it's fine for the new query param to come at the end, right?

On english the new URL will be https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en&wmf_key=minerva

That's great, thanks @SToyofuku-WMF ! The order doesn't actually matter

Edtadros updated the task description. (Show Details)
Edtadros subscribed.

Test Steps

Status: ✅ PASS
Environment: Beta
OS: macOS
Browser: Chrome
Device: MS

Test Case 1: Verify sidebar donate link includes wmf_key=minerva

  1. Visit any page on https://en.m.wikipedia.beta.wmflabs.org using the Minerva skin.
  2. Open the sidebar by tapping the menu icon.
  3. Locate and click the Donate banner or link.
  4. Observe the URL you are redirected to.
  5. ✅ AC1: Confirm that the URL contains &wmf_key=minerva in the query string.

Example:

https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en&wmf_key=minerva

screenshot 279.png (1×1 px, 111 KB)

Test Steps

Status: ✅ PASS
Environment: enwiki
OS: macOS
Browser: Chrome
Device: MS

Test Case 1: Verify sidebar donate link includes wmf_key=minerva

  1. Visit any page on https://en.m.wikipedia.beta.wmflabs.org using the Minerva skin.
  2. Open the sidebar by tapping the menu icon.
  3. Locate and click the Donate banner or link.
  4. Observe the URL you are redirected to.
  5. ✅ AC1: Confirm that the URL contains &wmf_key=minerva in the query string.

Example:

https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en&wmf_key=minerva

screenshot 295.png (1×1 px, 406 KB)