# \`zoomSdk.openUrl\` doesn't support query & hash

**URL:** <https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784>\
**Category:** Zoom Apps\
**Created:** [August 24, 2022, 10:27am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784 "2022-08-24T10:27:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tianalemesle](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tianalemesle](https://devforum.zoom.us/u/tianalemesle)\
**Post date:** [August 24, 2022, 10:27am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/1 "2022-08-24T10:27:45Z")

</div>

**Zoom Apps Configuration**  
Vue 3, Vite 2

**Description**  
`zoomSdk.openUrl` doesn’t support query & hash.

**Error?**  
None, which is also a problem, as `{ message: 'success' }` is returned.

**Troubleshooting Routes**  
`zoomSdk.openUrl` without query & hash works.

**How To Reproduce**

- Run `await zoomSdk.openUrl({ url: 'https://example.com' })` : it works

- Run `await zoomSdk.openUrl({ url: 'https://example.com?foo=bar' })` : it doesn’t work

- Run `await zoomSdk.openUrl({ url: 'https://example.com#foobar' })` : it doesn’t work

---

<div class="post-metadata">

**Author:** ![JonStewart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonstewart/32/36192_2.png) [@JonStewart](https://devforum.zoom.us/u/JonStewart)\
**Post date:** [August 24, 2022, 5:59pm UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/2 "2022-08-24T17:59:33Z")

</div>

Just pointing out that this api takes an object with a url field, eg:

```auto
await zoomSdk.openUrl({ url: "https://awesome-zoom-app.com/login" });

```

Are you seeing an error? Or what is the behavior you’re seeing?

---

<div class="post-metadata">

**Author:** ![tianalemesle](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tianalemesle](https://devforum.zoom.us/u/tianalemesle)\
**Post date:** [August 25, 2022, 7:06am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/3 "2022-08-25T07:06:51Z")

</div>

> [@JonStewart](#):
>
> Just pointing out that this api takes an object with a url field

Yes, sorry, that’s just a typo, but the logic remains : URLs without query nor hash work, URLs with query or hash don’t.

> [@JonStewart](#):
>
> Are you seeing an error?

No, as mentioned.

> [@JonStewart](#):
>
> Or what is the behavior you’re seeing?

Nothing happens, except `{ message: 'success' }` being returned, as mentioned.

Thanks

---

<div class="post-metadata">

**Author:** ![JonStewart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonstewart/32/36192_2.png) [@JonStewart](https://devforum.zoom.us/u/JonStewart)\
**Post date:** [August 25, 2022, 5:13pm UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/4 "2022-08-25T17:13:21Z")

</div>

Strange! We don’t apply any filtering at all. Pls make sure the following are true:

1. There are no spaces in the url
2. The domain is added to the allow list in your marketplace build
3. . . . if these are true, pls try **url encoding** the url string

---

<div class="post-metadata">

**Author:** ![tianalemesle](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tianalemesle](https://devforum.zoom.us/u/tianalemesle)\
**Post date:** [August 26, 2022, 8:46am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/5 "2022-08-26T08:46:53Z")

</div>

> [@JonStewart](#):
>
> There are no spaces in the url

As you can see in my examples, there are not.

> [@JonStewart](#):
>
> The domain is added to the allow list in your marketplace build

Whether or not the domain is added to the allow list doesn’t change anything.

> [@JonStewart](#):
>
> try **url encoding** the url string

As you can see, those URLs don’t need encoding.

I also realized that whether or not `openUrl` is added to `capabilities` doesn’t change anything either.

Thanks

---

<div class="post-metadata">

**Author:** ![JonStewart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonstewart/32/36192_2.png) [@JonStewart](https://devforum.zoom.us/u/JonStewart)\
**Post date:** [August 26, 2022, 9:06pm UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/6 "2022-08-26T21:06:39Z")

</div>

Not sure we’ve never encountered this problem with urls not opening from openUrl. Can you please send over any info you can: Your OS and version, your native Safari or Chrome version, your Zoom client version, etc. Also the exact urls if you can. I can ask someone to look into this

If you’d like to raise further attention, feel free to also report a bug (with all the above information) here:

[https://portal.productboard.com/xrgequbmi6ebsr1x2v6dqnxu/tabs/72-bugs](https://portal.productboard.com/xrgequbmi6ebsr1x2v6dqnxu/tabs/72-bugs)

---

<div class="post-metadata">

**Author:** ![tianalemesle](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tianalemesle](https://devforum.zoom.us/u/tianalemesle)\
**Post date:** [August 29, 2022, 8:01am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/7 "2022-08-29T08:01:40Z")

</div>

> [@JonStewart](#):
>
> OS and version

Windows 10 21H2

> [@JonStewart](#):
>
> Chrome version

104.0.5112.102

> [@JonStewart](#):
>
> Zoom client version

5.11.4 7185

> [@JonStewart](#):
>
> the exact urls

- `https://example.com?foo=bar`
- `https://example.com#foobar`

---

<div class="post-metadata">

**Author:** ![Robert.Wallis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robert.wallis/32/38438_2.png) [@Robert.Wallis](https://devforum.zoom.us/u/Robert.Wallis)\
**Post date:** [August 29, 2022, 6:46pm UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/8 "2022-08-29T18:46:09Z")

</div>

Those example URL don’t appear to be valid URLs. They must have a trailing slash after the domain name:

> <https://stackoverflow.com/questions/2581411/do-web-browsers-always-send-a-trailing-slash-after-a-domain-name/2581514#2581514>

---

<div class="post-metadata">

**Author:** ![tianalemesle](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tianalemesle](https://devforum.zoom.us/u/tianalemesle)\
**Post date:** [August 30, 2022, 9:19am UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/9 "2022-08-30T09:19:09Z")

</div>

Adding a trailing slash works, thanks.

Although, it feels a bit rude from the SDK not to support URLs without trailing slash, as the JavaScript [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) constructor supports it, as well as browsers in general.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 7, 2022, 8:15pm UTC](https://devforum.zoom.us/t/zoomsdk-openurl-doesnt-support-query-hash/74784/10 "2022-09-07T20:15:42Z")

</div>

Closed on September 7, 2022, 8:15pm UTC


