# Oauth redirect\_uri which uses the url hash is not supported

**URL:** <https://devforum.zoom.us/t/oauth-redirect-uri-which-uses-the-url-hash-is-not-supported/29734>\
**Category:** API and Webhooks\
**Created:** [September 10, 2020, 5:19am UTC](https://devforum.zoom.us/t/oauth-redirect-uri-which-uses-the-url-hash-is-not-supported/29734 "2020-09-10T05:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agung.quipper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/agung.quipper/32/12922_2.png) [@agung.quipper](https://devforum.zoom.us/u/agung.quipper)\
**Post date:** [September 10, 2020, 5:19am UTC](https://devforum.zoom.us/t/oauth-redirect-uri-which-uses-the-url-hash-is-not-supported/29734/1 "2020-09-10T05:19:59Z")

</div>

**Description**  
it’s just that I found there is an issue when redirect\_uri uses hash

the url that I created is:  
[https://zoom.us/oauth/authorize?response\_type=code&client\_id=xxxxxxx&redirect\_uri=https%3A%2F%2Fexample.com%2Fpath%23zoom](https://zoom.us/oauth/authorize?response_type=code&client_id=xxxxxxx&redirect_uri=https%3A%2F%2Fexample.com%2Fpath%23zoom)

**Error**  
After doing the authorization process, redirected go back to my site with url pattern =\> [https://example.com/path#zoom?code=xxxxxxx](https://example.com/path#zoom?code=xxxxxxx)

`code` url params will be unreadable because it goes into the hash scope  
`window.location.hash` =\> `#zoom?code=xxxxxxx`  
`window.location.search` =\> `""`

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Oauth

**Additional context**  
Btw it’s working if i don’t encode the redirect\_uri like this [https://zoom.us/oauth/authorize?response\_type=code&client\_id=xxxxxxx&redirect\_uri=https://example.com/path#zoom](https://zoom.us/oauth/authorize?response_type=code&client_id=xxxxxxx&redirect_uri=https://example.com/path#zoom)

then after doing the authorization process, redirected go back to my site with the url pattern =\>  
[https://example.com/path?code=xxxxxxx#zoom](https://example.com/path?code=xxxxxxx#zoom)

with that url pattern, then we can read the param url code:  
`window.location.hash` =\> `#zoom`  
`window.location.search` =\> `?code=xxxxxxx`

but without encoding… this goes against the best practice of usage in url params…

---

<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:** [September 14, 2020, 4:36pm UTC](https://devforum.zoom.us/t/oauth-redirect-uri-which-uses-the-url-hash-is-not-supported/29734/2 "2020-09-14T16:36:02Z")

</div>

Hey @agung.quipper,

Can you try.adding a slash at the end of your redirect url and before the #zoom?

Like this: `https://example.com/path/#zoom`

Let me know if that fixes the issue! 🙂

Thanks,  
Tommy

---

<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:** [October 15, 2020, 2:36am UTC](https://devforum.zoom.us/t/oauth-redirect-uri-which-uses-the-url-hash-is-not-supported/29734/3 "2020-10-15T02:36:11Z")

</div>

Closed on October 15, 2020, 2:36am UTC

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