Sharing page in iOS app sent wrong URL

AI-generated summary

Users reported an issue in the Discourse Hub iOS app where sharing a page via the iOS share sheet sent the wrong URL—specifically, the URL of the originally opened topic (often via notification), not the currently viewed one. jtbayly reproduced it by opening a notification, navigating to a suggested topic, and sharing via the iOS share button, consistently getting the wrong URL. Falco asked for expected vs actual URLs and suspected a bug in iOS’s Web Share API or WebView. jtbayly confirmed using iOS 12.1.1 and shared a screenshot and video showing the issue. j.jaffeux requested clarification on clicking a message, which jtbayly addressed with a video. Falco suspected an iOS WebView bug, and jtbayly confirmed it was the Discourse Hub app. Later, Tkshares reported the same issue on iOS 14/15. However, pmusaraj confirmed the bug is resolved in current versions of Discourse Hub, which now uses a different WebView, and could not reproduce the issue in either the app or Safari. Users are invited to post new repro steps if the problem persists.

I’ve not had a chance to try to reproduce this yet. I think the url was the one I had originally opened the app to via notification. It was definitely a topic I had been to earlier in that browsing session. I tried it twice in a row using the iOS “share” panel and got the same wrong URL both times.

What is the expected and the actual URL shared?

Reproduction steps in the app:

  1. Get an iOS notification from the app and open it.
  2. Scroll down and click a suggested topic
  3. Try to share the topic you are currently reading via the iOS share button

Again the problem might not be that narrow, but I just reproduced it using these steps when i got the notification about your question.

So in this case the url that got shared was this topic. The expected one was some random suggested topic that I’ve already forgotten.

What is the Safari version?

I think they are trying to implement the Web Share API and it may be buggy.

Can you share a screenshot of the share UI ?

I’m running iOS 12.1.1. Is there such a thing as a Safari version separate from the OS on mobile?

Edit:
Here is the share sheet I’m referring to:

What does it display when you click on message here please ?

I’m sorry I don’t know what you mean by “click on a message here.”

Here’s a short video of what I’m doing. It picks up right after I opened the app via notification of your question:

Does that answer your question?

This could be a bug in iOS for all I know. But I don’t think I’ve experienced it elsewhere. I have confirmed that is indeed the wrong url that gets sent. It’s not just displaying the wrong page title or something.

1 Like

Oh I see, sounds like another iOS WebView thing bug.

This is using the Discourse Hub app right?

4 Likes

Yeah. Sorry I didn’t make that quite clear originally I guess.

Hey, is this resolved? Facing same issue on IOS 14, 15 for my webapp.
@jtbayly @Falco

1 Like

Yes, the issue reported in Sharing page in iOS app sent wrong URL - #7 by jtbayly is resolved. DiscourseHub uses a completely different webview from when this issue was reported, and I can’t reproduce the wrong URL issue when sharing from it now. Can’t reproduce in Safari either.

Feel free to post detailed repro steps @Tkshares.

3 Likes