# \#parsehash

**URL:** https://community.auth0.com/tag/parsehash/619.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Angular parseHash returns undefined](https://community.auth0.com/t/angular-parsehash-returns-undefined/9462)

<div class="topic-metadata">

**Author:** [@suede](https://community.auth0.com/u/suede)\
**Replies:** 1\
**Last updated:** [February 19, 2018, 8:01pm UTC](https://community.auth0.com/t/angular-parsehash-returns-undefined/9462 "2018-02-19T20:01:11Z")

</div>

this.auth0.parseHash((err, authResult) =\> { if (authResult && authResult.accessToken && authResult.idToken) { window.location.hash = ‘’; this.setSession(authResult); this.router.navigate(‘/’\]); } else if (err) { th…

---

## [parseHash doesn't seem to work with non-empty hash prefixes](https://community.auth0.com/t/parsehash-doesnt-seem-to-work-with-non-empty-hash-prefixes/7597)

<div class="topic-metadata">

**Author:** [@dale.lane](https://community.auth0.com/u/dale.lane)\
**Replies:** 1\
**Last updated:** [January 5, 2018, 11:38pm UTC](https://community.auth0.com/t/parsehash-doesnt-seem-to-work-with-non-empty-hash-prefixes/7597 "2018-01-05T23:38:34Z")

</div>

If I set up an angular app not in HTML mode… e.g. $locationProvider.html5Mode(false); // or let this happen by default ..and I use anything other than an empty string for the hash prefix… e.g. $locationProvider.has…

---

## [SAMLP and parseHash not working on some browsers](https://community.auth0.com/t/samlp-and-parsehash-not-working-on-some-browsers/6987)

<div class="topic-metadata">

**Author:** [@encirca](https://community.auth0.com/u/encirca)\
**Replies:** 2\
**Last updated:** [June 23, 2017, 7:59pm UTC](https://community.auth0.com/t/samlp-and-parsehash-not-working-on-some-browsers/6987 "2017-06-23T19:59:48Z")

</div>

From my header logs, I can see auth0 as the initiator of the redirect back after the SAML authentication success at the IDP. BUT, auth0 is doing a 301 redirect which can cause Safari and some other browsers to drop the h…
