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

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

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)

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

Bumping to try to get this bug resolved…

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."

This is still an issue in 3.1.6.

This is still an issue in 3.5.1.

Still an issue in 3.5.2.

Still an issue in 3.6.0.

Still an issue in 3.6.1.

Still an issue in 3.7.0.

Still an issue in 3.8.0.

Still an issue in 3.8.5.

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.

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.

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.

Still an issue in 3.8.10.

Still an issue in 3.9.0.

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

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

Change:

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

To:

const leaveUrl = "about:blank";

Here’s a video demonstrating the resulting erroneous behaviour:

20241009 Zoom leaveUrl bug.mp4

1 Like

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

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

Hi @donte.zoom,

Thanks for following up on this.

As per my previous reply, I’m specifying:

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 you would quickly and easily see the problem.