Page MenuHomePhabricator

If article has apostrophe in title, share sheet has wrong behavior for "Copy"
Open, LowPublicBUG REPORT

Description

from https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=11975491

Share/Copy stores title, not link, on clipboard

List of steps to reproduce (step by step, including full links if applicable):

  • Google search from Safari for Sutter’s Mill Meteorite.
  • Tap on the Wikipedia link and app opens.
  • Touch share button, then Copy.
  • Paste in iMessage conversation.

What happens?:
I get the article title and no link.

What should have happened instead?:
I get the article link.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
WikipediaApp/6.8.2.1837 (iOS 14.8; Phone)

Reproduced on iPad also

Event Timeline

JMinor moved this task from Needs Triage to Product Backlog on the Wikipedia-iOS-App-Backlog board.
JMinor moved this task from Product Backlog to Bug Backlog on the Wikipedia-iOS-App-Backlog board.

This is almost certainly related to the apostrophe in the article title. It's broken on other articles that have apostrophes in their name. However, it's working on articles w/o apostrophes, as well as those with dashes.

MattCleinman renamed this task from Share/Copy stores title, not link, on clipboard to If article has apostrophe in title, share sheet has wrong behavior for "Copy".Oct 18 2021, 6:41 PM
MattCleinman updated the task description. (Show Details)

another report: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=12077535

However, this user said that it happened on a title without an apostrophe, "Australia". I tried that and was able to reproduce: this only copied the article title text and not the article link.
This also happened on "Australian Open", "Ukraine", and "Hong Kong."

But I tried it on other articles, "Ukrainians", "Republic Day (India)", and "Meatloaf" and those worked correctly.

I tried some apostrophe titles as well: "Sutter's Mill" and "Harper's Mansion" only copied the title, but "Murphy's law" and "Occam's razor" got the link.