# Sharing page in iOS app sent wrong URL

**URL:** https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105
**Category:** Bug
**Tags:** discourse-hub
**Created:** [December 12, 2018, 1:42pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105 "2018-12-12T13:42:01Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [December 12, 2018, 1:42pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/1 "2018-12-12T13:42:01Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 12, 2018, 1:55pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/2 "2018-12-12T13:55:55Z")

</div>

What is the expected and the actual URL shared?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [December 12, 2018, 3:09pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/3 "2018-12-12T15:09:22Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 12, 2018, 3:45pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/4 "2018-12-12T15:45:32Z")

</div>

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 ?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [December 12, 2018, 3:49pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/5 "2018-12-12T15:49:12Z")

</div>

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:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/6/465c4d67d3f94f6063decfa8c31e86863e126b6e.png)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [December 12, 2018, 4:55pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/6 "2018-12-12T16:55:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [December 12, 2018, 5:04pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/7 "2018-12-12T17:04:31Z")

</div>

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:

[https://global.discourse-cdn.com/meta/original/3X/1/3/13247c9803910d467effdede213df762c16ec918.MOV](https://global.discourse-cdn.com/meta/original/3X/1/3/13247c9803910d467effdede213df762c16ec918.MOV)

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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 12, 2018, 5:06pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/8 "2018-12-12T17:06:46Z")

</div>

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

This is using the Discourse Hub app right?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [December 12, 2018, 5:07pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/9 "2018-12-12T17:07:29Z")

</div>

> [@Falco](#):
>
> using the Discourse Hub app right?

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

---

<div class="post-metadata">

### Author: ![Tkshares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkshares/32/251847_2.png) [@Tkshares](https://meta.discourse.org/u/Tkshares)
#### Post date: [March 3, 2022, 11:43am UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/10 "2022-03-03T11:43:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [March 10, 2022, 3:42pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/11 "2022-03-10T15:42:36Z")

</div>

Yes, the issue reported in [Sharing page in iOS app sent wrong URL - #7 by jtbayly](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/7) 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.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 28, 2024, 7:45pm UTC](https://meta.discourse.org/t/sharing-page-in-ios-app-sent-wrong-url/104105/12 "2024-06-28T19:45:06Z")

</div>


