# ZoomMtg.init({ leaveUrl: "about:blank", ...}) causes exception from v3.1.0

**URL:** <https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695>\
**Category:** Meeting SDK\
**Created:** [January 12, 2024, 5:57am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695 "2024-01-12T05:57:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [January 12, 2024, 5:57am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/1 "2024-01-12T05:57:01Z")

</div>

**Meeting SDK Type and Version**  
Web 3.1.0 - 3.1.2

**Description**  
Using a `leaveUrl` value of `"about:blank"` worked in v2.18.2.  
Since v3.1.0 it fails with an exception.

**Error**

```auto
Uncaught DOMException: Failed to set the 'href' property on 'Location': 'https://about:blank' is not a valid URL.
    at https://source.zoom.us/zoom-meeting-3.1.2.min.js:2:307760
    at i (https://us02st1.zoom.us/web_client_whiteboard/lq6z1k7k/dist/js/whiteboard-sdk.js:44:1017162)

```

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [January 16, 2024, 7:45am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/2 "2024-01-16T07:45:02Z")

</div>

@tommy Any chance of getting this bug introduced in 3.1.0 fixed?

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [January 22, 2024, 12:28am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/3 "2024-01-22T00:28:35Z")

</div>

Bumping to try to get this bug resolved…

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [January 24, 2024, 12:41am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/4 "2024-01-24T00:41:12Z")

</div>

FYI this is still a bug in the newly released version 3.1.4 which fixed another bug related to `leaveUrl`: " `LeaveUrl` didn’t allow HTTP redirects."

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [February 7, 2024, 12:12am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/5 "2024-02-07T00:12:27Z")

</div>

This is still an issue in 3.1.6.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [March 18, 2024, 5:07am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/6 "2024-03-18T05:07:21Z")

</div>

This is still an issue in 3.5.1.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [April 9, 2024, 5:48am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/7 "2024-04-09T05:48:55Z")

</div>

Still an issue in 3.5.2.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [April 24, 2024, 1:37am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/8 "2024-04-24T01:37:41Z")

</div>

Still an issue in 3.6.0.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [May 13, 2024, 3:23am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/9 "2024-05-13T03:23:57Z")

</div>

Still an issue in 3.6.1.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [May 27, 2024, 1:16am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/10 "2024-05-27T01:16:58Z")

</div>

Still an issue in 3.7.0.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [July 10, 2024, 6:49am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/11 "2024-07-10T06:49:27Z")

</div>

Still an issue in 3.8.0.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [August 15, 2024, 4:45am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/12 "2024-08-15T04:45:34Z")

</div>

Still an issue in 3.8.5.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [August 16, 2024, 11:31am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/13 "2024-08-16T11:31:25Z")

</div>

Thank you for posting in the Zoom Developer Forum, @chris-praxhub! To start, could you share the expected behavior of that blank? What does that value do or used to do that it no longer does? If you can give us more information about your case, it will help us better understand what may have happened or may be happening.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [August 19, 2024, 12:54am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/14 "2024-08-19T00:54:38Z")

</div>

Hi @donte.zoom, thanks for your response.

The `leaveUrl` is documented as:

> leaveUrl: Required. The URL to post after the user leaves the meeting…

`about:blank` is a valid URL for displaying a blank page, as per [RFC 6694 - The "about" URI Scheme](https://datatracker.ietf.org/doc/html/rfc6694#section-3).

Prior to v3.1.0 of the Zoom Meeting SDK for Web, it was possible to set `leaveUrl` to `about:blank` so that the Zoom SDK redirected to a blank page upon leaving a meeting. This was broken by a bug introduced in v3.1.0, as per my original post.

My integration with the Zoom Meeting SDK is within an `iframe` inside a React SPA (Single Page Application). The outer SPA listens for an event of the `iframe` loading a blank page up meeting leave and takes appropriate navigation action in the outer SPA. The simplest blank page to use for this purpose would be `about:blank`. As a workaround to this issue, I’m currently having to publish an actual `blank.html` page.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [September 12, 2024, 6:41am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/15 "2024-09-12T06:41:11Z")

</div>

Still an issue in 3.8.10.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [October 4, 2024, 5:38am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/16 "2024-10-04T05:38:26Z")

</div>

Still an issue in 3.9.0.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 9, 2024, 3:39am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/17 "2024-10-09T03:39:28Z")

</div>

Could you provide a code snippet of your ZoomMtg.init function and a video demonstrating the behavior you’re experiencing?

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [October 9, 2024, 6:30am UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/18 "2024-10-09T06:30:24Z")

</div>

You can reproduce using the Zoom React sample. Change the following line:

> <https://github.com/zoom/meetingsdk-react-sample/blob/c3659dddbe9c12c439226ee0e70a0857f10f87b5/src/App.tsx#L17>

Change:

```JS
const leaveUrl = "http://localhost:5173";

```

To:

```JS
const leaveUrl = "about:blank";

```

Here’s a video demonstrating the resulting erroneous behaviour:

[20241009 Zoom leaveUrl bug.mp4](https://praxhub-my.sharepoint.com/:v:/p/chris/EbLrQY1G6LNBsyLl2vghyY0BFqbMKL4LonWKZd9aFFTiEw?e=2pcvt0)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 9, 2024, 4:24pm UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/19 "2024-10-09T16:24:16Z")

</div>

@chris-praxhub ,  
Does this issue occur only in Chrome? Have you tested other browsers? Also, try removing the ‘https://’ prefix.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/5/15c0902a6bdecbb7cc76dd3f74aa0c0110454a5b.jpeg)

When I tested on my end, [https://about:blank](https://about:blank) returned Google results, while about:blank displayed a blank page.

---

<div class="post-metadata">

**Author:** ![chris-praxhub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris-praxhub/32/74744_2.png) [@chris-praxhub](https://devforum.zoom.us/u/chris-praxhub)\
**Post date:** [October 10, 2024, 10:39pm UTC](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695/20 "2024-10-10T22:39:33Z")

</div>

Hi @donte.zoom,

Thanks for following up on this.

As per my previous reply, I’m specifying:

```js
const leaveUrl = "about:blank";

```

The `https://` prefix is then being added incorrectly by the Zoom SDK code. This is the bug. It didn’t used to behave this way. The bug was introduced in v3.1.0.

The issue is the same across different browsers. It seems to be a bug introduced in the Zoom SDK code.

If you tested using the [React sample](https://github.com/zoom/meetingsdk-react-sample) you would quickly and easily see the problem.

[Next page](https://devforum.zoom.us/t/zoommtg-init-leaveurl-about-blank-causes-exception-from-v3-1-0/101695.md?page=2)
