# Disable reload page on leave meeting

**URL:** <https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484>\
**Category:** Web\
**Created:** [August 14, 2019, 3:22pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484 "2019-08-14T15:22:52Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![osulzhenko](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@osulzhenko](https://devforum.zoom.us/u/osulzhenko)\
**Post date:** [August 14, 2019, 3:22pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/1 "2019-08-14T15:22:52Z")

</div>

Hello, i can’t find solution to deny SDK scripts to reload page after client click “leave meeting” button,  
there are “leaveUrl” required filed, but i don’t want to reload page, i just need to stay on the same page after leave/end meeting and destroy ZoomMtg to be able ZoomMtg .init() it again without page reloading.  
I will be appreciated for any help…

Web Client JSSDK 1.5.0

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 14, 2019, 4:10pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/2 "2019-08-14T16:10:22Z")

</div>

Hi @osulzhenko,

As of right now the WebSDK is designed to reload the page after clicking leave meeting. We’ll talk with our Engineers to see if this type of feature can be look at in the future.

Thanks

---

<div class="post-metadata">

**Author:** ![osulzhenko](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@osulzhenko](https://devforum.zoom.us/u/osulzhenko)\
**Post date:** [August 15, 2019, 8:46am UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/3 "2019-08-15T08:46:31Z")

</div>

Hi @michael_p.zoom, thanks for quick response.  
Can you tell me where i can get zoomus-jssdk.js not minified? maybe i can find place where reload triggered and change code to fit my requirements …

This issue is critical for my app, and i really need to find solution …

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 15, 2019, 3:44pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/4 "2019-08-15T15:44:11Z")

</div>

Hey @osulzhenko,

You can use a tool like [https://unminify.com/](https://unminify.com/) to convert it to not minified.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![osulzhenko](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@osulzhenko](https://devforum.zoom.us/u/osulzhenko)\
**Post date:** [August 16, 2019, 2:33pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/5 "2019-08-16T14:33:46Z")

</div>

It has no sense, there are all functions renamed, so it’s impossible to find out whats going on…  
maybe you can ask developer for possible simple way to stop redirect on leave meeting ?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 16, 2019, 3:57pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/6 "2019-08-16T15:57:59Z")

</div>

Hey @osulzhenko,

I do not recommend doing this, but to achive what you want, unminify the code here [https://unminify.com/](https://unminify.com/) then comment out these blocks of code:

```auto
case i.WS_CONF_LEAVE_REQ:
    n(Q()), n(U()), n({
        type: p.uc,
        data: []
    }), r.a.remove("wc_info", {
        path: "/"
    }), "jsapi" === o().meeting.joinSource ? o().meeting.leaveRedirect && !o().meeting.expelInfoModalIsOpen && (r.a.remove("wc_info", {
        path: "/"
    }), window.location.href = o().meeting.leaveUrl) : window.location.href = "".concat(o().meeting.baseUrl, "/wc/leave"), Object(A.I)(p.oc, {
        status: "disconnect"
    }), n({
        type: p.Gb,
        data: !0
    });
    break;

```

```auto
window.location.href = x

```

```auto
window.location.href = "".concat(b, "/wc/leave?meetingNumber=").concat(m)

```

```auto
window.location.href = c

```

```auto
window.location.href = "".concat(i, "/wc/leave?meetingNumber=").concat(s)

```

Then restart the server `npm run start` and when you leave a meeting the page will no longer refresh.

[Code file reference here.](https://gist.github.com/tommygaessler/100b3343620a152050b46e7abf8bee0c)

**This may cause errors or issues** when doing this, so again, I don’t recomend changing the source code. We will have a more customizable Web SDK coming next year, [you can follow our release log](https://marketplace.zoom.us/docs/changelog) in the meantime.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zsadiq](https://avatars.discourse-cdn.com/v4/letter/z/e56c9b/32.png) [@zsadiq](https://devforum.zoom.us/u/zsadiq)\
**Post date:** [March 7, 2020, 7:52am UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/7 "2020-03-07T07:52:34Z")

</div>

hi tommy,  
i don’t want to refresh page on meeting end because of data loss which is entered during call, how can i get this?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 9, 2020, 3:54pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/8 "2020-03-09T15:54:48Z")

</div>

Hey @zsadiq, thanks for posting and using Zoom!

Unfortunately, there is no way to prevent the page reload for the leaveUrl at this time.

Can you explain “data loss” further so I can help come up with a solution?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zsadiq](https://avatars.discourse-cdn.com/v4/letter/z/e56c9b/32.png) [@zsadiq](https://devforum.zoom.us/u/zsadiq)\
**Post date:** [March 9, 2020, 4:26pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/9 "2020-03-09T16:26:24Z")

</div>

Hello

I am using zoom call player in a div and there is many other fields on same page so after meeting end page is reloads and all fields are empty

Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 9, 2020, 4:33pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/10 "2020-03-09T16:33:25Z")

</div>

Hey @zsadiq,

Can you add an auto save feature on your end to save the data every time it is edited?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zsadiq](https://avatars.discourse-cdn.com/v4/letter/z/e56c9b/32.png) [@zsadiq](https://devforum.zoom.us/u/zsadiq)\
**Post date:** [March 10, 2020, 7:17am UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/11 "2020-03-10T07:17:12Z")

</div>

Thanks tommy

This is one of the solution, can I call my own function on meeting end?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 10, 2020, 4:04pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/12 "2020-03-10T16:04:28Z")

</div>

Hey @zsadiq,

Checkout the `inMeetingServiceListener` it can detect when a user leaves / ends the meeting with `onUserLeave`.

[https://zoom.github.io/sample-app-web/ZoomMtg.html#inMeetingServiceListener](https://zoom.github.io/sample-app-web/ZoomMtg.html#inMeetingServiceListener)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zsadiq](https://avatars.discourse-cdn.com/v4/letter/z/e56c9b/32.png) [@zsadiq](https://devforum.zoom.us/u/zsadiq)\
**Post date:** [March 11, 2020, 8:53am UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/13 "2020-03-11T08:53:20Z")

</div>

Hey Tommy

Thanks for your time, the whole conversation was very helpful.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 11, 2020, 3:39pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/14 "2020-03-11T15:39:25Z")

</div>

Happy to help!

Please let us know if you have additional questions! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![uino](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/uino/32/3954_2.png) [@uino](https://devforum.zoom.us/u/uino)\
**Post date:** [April 2, 2020, 2:21pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/15 "2020-04-02T14:21:40Z")

</div>

Hi @tommy

I have tried what you have suggested ( Checkout the `inMeetingServiceListener` it can detect when a user leaves / ends the meeting with `onUserLeave` .) But it seems that it isn’t working. Then, in the documentation that you have provided, it’s written that the inMeetingServiceListener will be available in the sdk version 1.8.0. So they are not yet available, am I right?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 2, 2020, 5:30pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/16 "2020-04-02T17:30:22Z")

</div>

Hi @uino,

Correct, version 1.8.0 is not available as of yet. Until we release it, a workaround to see when a user leaves a meeting or ends a meeting a workaround would be to use our Participant Leave[1] and Meeting End[2] webhooks.

1 - [https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/participant-joined-meeting](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/participant-joined-meeting)  
2 - [https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending)

---

<div class="post-metadata">

**Author:** ![Cristian](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cristian/32/6823_2.png) [@Cristian](https://devforum.zoom.us/u/Cristian)\
**Post date:** [May 11, 2020, 3:57pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/17 "2020-05-11T15:57:39Z")

</div>

> [@tommy](#):
>
> wc\_info

Hi Tommy, mau u be a bit more accurate in how to use this webhook?

Thanks in advance

CS

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 15, 2020, 5:17pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/18 "2020-05-15T17:17:37Z")

</div>

Hey @Cristian,

Can you clarify your question? What Webhook are you referring to?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:19pm UTC](https://devforum.zoom.us/t/disable-reload-page-on-leave-meeting/5484/19 "2020-08-21T21:19:54Z")

</div>

Closed on August 21, 2020, 9:19pm UTC


