Page MenuHomePhabricator

Flow notification links on mobile point to desktop
Open, MediumPublic

Description

On mobile, the Flow notification's link takes you to the desktop version of the Flow page, even though the main (background) link takes you to the mobile one (main)

When I visit http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Talk:Flow_QA&topiclist_sortby=newest&fromnotif=1 on a mobile device (the url in the Echo notification) I am thrown into the desktop experience. This is pretty jarring and we should probably setup a redirect or use a more suitable url.


Copy from merged task:

Tested:

  • Topic Foo responded on Pagename -- ("Topic" goes to desktop, background to mobile) <- bug
  • Topic Foo created a new topic on Pagename -- ("Topic" goes to desktop, background to mobile) <- bug
  • Foo mentioned you in their [post] in "Topic" on "Pagename" -- ([post] goes to desktop, background to mobile) <- bug
  • Foo thanked you for [your comment] in "Topic" on Pagename -- (only a background link which goes to mobile) <- success

Ebernhardson wrote:

we should be able to write a test that renders all the possible notifications in both mobile and desktop, and then looks at all the links in the final html

Related Objects

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson subscribed.
Restricted Application added subscribers: Matanya, Aklapper. · View Herald Transcript

I'm glad that this task has been created. I have been two weeks on vacation, carrying my mobile device only and watching activity in ca.wiki in my volunteer capacity. The jumps from mobile Echo notifications to desktop Flow pages were the single most annoying thing in my Wikipedia browsing.

The fix should be simple?

DannyH set Security to None.

Note, this is somewhat related to T72318
Changing http://git.wikimedia.org/blob/operations%2Fpuppet.git/3e6275024bcd42d38ab9aa22a369760a56e50332/templates%2Fvarnish%2Ftext-frontend.inc.vcl.erb#L26 could make both redirect to the mobile site without having to worry about the canonical url. I'll leave it up to you if you want to merge T72318 into this and solve it this way.

Krenair subscribed.

Moved from Wikimedia-Site-requests to SRE since that's in the puppet repository, not mediawiki-config

Yes, in the puppet repository but in the mediawiki module. Since it's config you might argue for it to be in mediawiki-config. In the past it was in a separate repository "apache-config" which somehow made more sense to me, since many redirects in there really have nothing to do with mediawiki itself.

Quiddity renamed this task from Flow url doesn't redirect to mobile to On mobile, the Flow notification's link takes you to the desktop version of the Flow page, even though the main (background) link takes you to the mobile one (main).Aug 14 2015, 4:51 PM
Quiddity updated the task description. (Show Details)
DannyH renamed this task from On mobile, the Flow notification's link takes you to the desktop version of the Flow page, even though the main (background) link takes you to the mobile one (main) to Flow notification links on mobile point to desktop.Sep 15 2015, 5:55 PM
DannyH updated the task description. (Show Details)

I can't reproduce this now. Clicking notification about a flow topic leads me to the mobile version of Flow.

Is this still happening?

I couldn't reproduce the specific problems in this bug, but it also shows several issues with Echo and mobile that are being fixed:

  1. We need to refactor MobileFrontend's flyout to use the new ooui version of Echo. There's a WIP patch already, but it was blocked on making the notifications widget work once again with a "combined" view, which now has patchsets awaiting (https://gerrit.wikimedia.org/r/#/c/249031/)
  2. We need to refactor and redo the Special:Notifications page in general, there's a task about that, to fix it for both desktop and mobile view (there's a separate task for that)

More to the point, I don't think this should be "blocked". Some aspects of this ticket are under development, and others need closer scrutiny and to see if they're still happening so they can be fixed. I remembered this ticket in ready for pickup (partially due to the fact that the 'combined' flyout was supposedly another ticket), not in "blocked."

I'm not sure why it was moved to the blocked column.

Yes, my understanding is we took it because although we thought the fix would touch mobile code (and maybe even Varnish) we planned on doing it.

As you said, #1 and #2 are different bugs.

If none of the three "bug" cases in the description can be reproduced, this should be closed.

This problem can be reproduced today:

  1. Watch a Flow topic and get it updated so it generates notifications.
  1. On mobile, click the Bell icon to get the "Notifications" window.

These notifications have this format:

<link>Topic</link>
UserX responded on Discussion page
  1. Click the Topic link.

This link leads to a desktop page.

Meanwhile, the equivalent Topic in your watchlist points to the mobile version of the same topic.

In fact, the problem seems to be even simpler:

  • Clicking the topic link leads to the desktop page.
  • However, tapping on the rectangle of the notification leads... to the mobile page!

Maybe the fix is as simple as using the same instruction to link the rectangle (the div?) and the link to the topic?

It looks like there has been a regression? Now both clicking the topic link and the rectangle will lead to the desktop page. As far as I can see, the link to the mobile page has been lost. I wish I knew where to look in order to see whether a new patch has been merged and by whom, in order to ask whether doing the opposite (change the code to bring both links to the mobile page) is feasible.

Testing betalabs for the scenarios described in the ticket:

NotificationMobile page?
New topic createdYes
Summary created/editedYes
Topic resolvedYes
LinkYes
ThanksNo
Replies/Edits of postsNo
MentionNo

@Etonkovidova in case it's useful information it's worth noting that you should run these tests on different user agents.

When the absolute URL is used the user agent is important. When you visit the desktop url a redirect to the mobile site and mobile domain will only happen when you are on a recognised mobile browser (regardless of whether you are already on the mobile site).

thx @Jdlrobson - it's certainly requires more exhaustive testing. The table in my comment is from testing on mobile device (iPhone) and from Chrome mobile simulator on the desktop. I am going to add some test results from production.

Testing *production** for the scenarios described in the ticket:

NotificationMobile page?
New topic createdYes
Summary created/editedYes
Topic resolvedYes
LinkYes
ThanksNo
Replies/Edits of postsNo
MentionNo (Flow pages only)
jbond subscribed.

removing the sre tag as im not sure there is an re action. but please re add and update if im mistaken