# WebSDK: Zoom meeting Leave url is not working with angular with hash strategy

**URL:** <https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911>\
**Category:** Web\
**Created:** [February 9, 2021, 1:31pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911 "2021-02-09T13:31:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitin.goyal](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nitin.goyal](https://devforum.zoom.us/u/nitin.goyal)\
**Post date:** [February 9, 2021, 1:31pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/1 "2021-02-09T13:31:06Z")

</div>

**Description**  
I am using ZOOM websdk in my angular application. We are using hash strategy in routing. So we have url like \*\*\*\*.

and I am using leaveUrl = \*\*\*\*.

When i click end meeting it stuck on black screen with message " Meeting Disconnected

Redirecting in 3 seconds…"

Please see the attached screenshot

**Which version?**  
In all the version 1.8.5+

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

1. use any url with # ,in leave url
2. Click on ‘end meeting’ or ‘leave meeting’
3. See error

**Screenshots**

 ![Screenshot 2021-02-09 at 6.56.00 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/4/143755e425d307229c91d6061fe56fc04e1fae3e.png)

---

<div class="post-metadata">

**Author:** ![nitin.goyal](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nitin.goyal](https://devforum.zoom.us/u/nitin.goyal)\
**Post date:** [February 9, 2021, 2:44pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/2 "2021-02-09T14:44:04Z")

</div>

@tommy @MaxM please help

---

<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:** [February 10, 2021, 8:14pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/3 "2021-02-10T20:14:38Z")

</div>

Hey @nitin.goyal,

Thank you for reaching out to the Zoom Developer Forum. When testing this on my end, I didn’t see the same issue when redirecting to the following URL: [https://www.google.com/#/search](https://www.google.com/#/search)

Do you see any errors in the console? Also, does this happen when you use the above URL or only when the leaveURL redirects to an Angular site?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![nitin.goyal](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nitin.goyal](https://devforum.zoom.us/u/nitin.goyal)\
**Post date:** [February 16, 2021, 11:23am UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/4 "2021-02-16T11:23:11Z")

</div>

if you are already on a hash url like : . and try changing to “” you will face the issue and yes it is on angular site when we use hash strategy or any site with hash In the url.

I tried looking for the issue in the sdk. It seems you are using **window.location.href** to redirect ,and to make it work on url with hash we have to use **window.location.hash**.

Please let me know if you need any more details.

---

<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:** [February 17, 2021, 8:28pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/5 "2021-02-17T20:28:02Z")

</div>

Hey @nitin.goyal ,

Currently the Web SDK only supports `window.location.href`. We will support `window.location.hash` in the future. (CS-2845)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nitin.goyal](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nitin.goyal](https://devforum.zoom.us/u/nitin.goyal)\
**Post date:** [February 18, 2021, 5:57am UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/6 "2021-02-18T05:57:48Z")

</div>

@Tommy can you suggest any workaround for that ?

---

<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:** [February 18, 2021, 7:47pm UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/7 "2021-02-18T19:47:42Z")

</div>

Hey @nitin.goyal,

Thank you for your question. Currently, as a workaround, you will want to avoid the use of the hash strategy in Angular or use `window.location.href` to set the URL.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 21, 2021, 5:48am UTC](https://devforum.zoom.us/t/websdk-zoom-meeting-leave-url-is-not-working-with-angular-with-hash-strategy/42911/8 "2021-03-21T05:48:15Z")

</div>

Closed on March 21, 2021, 5:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
