Page MenuHomePhabricator

[Bug 🐛 ] Share links for articles including punctuation
Closed, ResolvedPublic

Description

Steps to reproduce
Search for the article "Hand. Cannot. Erase." (https://en.wikipedia.org/wiki/Hand._Cannot._Erase.)
Tap on the share button
Select 'Share to Twitter'
Share Tweet

Expected result
Tweet includes a truncated but working URL

Actual result

IMG_3453.PNG (1×750 px, 107 KB)

Link is broken and URL is different from web address:

Link above goes to: https://en.wikipedia.org/wiki/Hand._Cannot._Erase
Whereas the article URL is:https://en.wikipedia.org/wiki/Hand._Cannot._Erase. (note the last period)

NOTE: I tried this out with a few other articles that include punctuation (Eats, Shoots and Leaves + Papier-mâché) but could not find another article where this happens.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
JMinor renamed this task from [Bug 🐛 ] Share links for articles including to [Bug 🐛 ] Share links for articles including punctuation.Jul 17 2017, 6:39 PM
JMinor triaged this task as Low priority.
JMinor moved this task from Needs Triage to Bug Backlog on the Wikipedia-iOS-App-Backlog board.

Could this be related to Sharing article title with an exclamation mark does not encode it for urls? @JoeWalsh

Seems like the lack of the last dot in the link posted to Twitter makes it invalid (see the last tweet at https://twitter.com/testwikipedia). It works in Safari (and other sharing options).

Link above goes to: https://en.wikipedia.org/wiki/Hand._Cannot._Erase
Whereas the article URL is: https://en.wikipedia.org/wiki/Hand._Cannot._Erase. (note the last period)

Weirdly it's even causing issues on Phab too :(

JMinor subscribed.

This turned out to be more complex than expected, both on the UX side and on the URL encoding side, so I'm pushing this to a future release, along with other sharing improvements.

cmadeo updated the task description. (Show Details)
cmadeo updated the task description. (Show Details)

Reminder: Test any fixes with a non-latin character set lang article which has a period. Arabic, Russian etc.

Simulator Screen Shot Aug 29, 2017, 3.20.45 PM.png (1×750 px, 166 KB)

tested these articles in Arabic - tested open in Safari as well as verifying that save and history worked as expected

ABorbaWMF subscribed.

Tested on iPhone 7+ with iOS 10.3.3on App 5.6.1 (1212)

Working