How to set up a url address after failed to join a meeting

Description
We set the leaveUrl as the jump address for the end of the meeting. When joining a meeting fails, we want to be able to customize a page url. How should I do?

Browser Console Error
The full error message or issue you are running into.

Which Web Meeting SDK version?
2.4.5

Meeting SDK Code Snippets
The code snippets that are causing the error / issue so we can reproduce.

ZoomMtg.init({
        leaveUrl: `${window.location.origin}/finish?type=meeting`,
        isSupportAV: true,
        audioPanelAlwaysOpen: false,
        success: () => {
          ZoomMtg.join({
            sdkKey: key,
            signature: signature,
            meetingNumber: meetingNumber,
            passWord: pwd,
            userName: userName,
            success: res => {
              console.log(res);
            },
            error: error => {
              console.log(error);
            },
          });
        },
        error:(error) => {
          console.log(error);
        }
      });

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Build a sample app to join a meeting with Client View SDK.
  2. Click ‘Join’ button
  3. The modal appears
    Screenshot 2022-07-06 at 5.51.17 PM
    4.Click 'Ok’button, go to leaveUrl

Device (please complete the following information):

  • Device: Macbook Pro
  • OS: macOS 12.1
  • Browser: Chrome
  • Browser Version: 103.0.5060.114 (Official Build) (arm64)

Hi @weijun.tan we don’t support this today but it’s a great suggestion. We’ll add this as a feature request of the SDK and will work to get it prioritized.

Thanks for your reply. I wait in hope for the day.