# SPA Uses Hash Fragments, How to set up redirect URI without hash fragments?

**URL:** <https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687>\
**Category:** Questions\
**Created:** [January 16, 2020, 6:04pm UTC](https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687 "2020-01-16T18:04:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldbeedev](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/goldbeedev/32/1571_2.png) [@goldbeedev](https://devforum.okta.com/u/goldbeedev)\
**Post date:** [January 16, 2020, 6:04pm UTC](https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687/1 "2020-01-16T18:04:49Z")

</div>

Hi Guys,

I’m setting up Okta onto a .net core SPA.

The routes in the SPA use hash uri fragments, Okta doesn’t let you use a URI with a hash fragment as the redirect. I’m redirecting to a base url to get the success response, and it does store it but my app gets buggy and returns a not found for that route and redirects to the default home page again. It does work, but its not smooth, anyone have a solution for this?

Thank you

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [January 29, 2020, 6:34am UTC](https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687/2 "2020-01-29T06:34:09Z")

</div>

Hi @goldbeedev

Can you please try to URL encode the hash sign, in order to have it passed inside the URL and not stripped?

---

<div class="post-metadata">

**Author:** ![prathamesh.phadke](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@prathamesh.phadke](https://devforum.okta.com/u/prathamesh.phadke)\
**Post date:** [December 11, 2023, 6:54pm UTC](https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687/3 "2023-12-11T18:54:24Z")

</div>

Hi Okta Community!  
Do we have any resolution on this? We are facing the same challenge.

@goldbeedev - Did you implement any alternative solution for this?

Thank you!

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 13, 2024, 12:33am UTC](https://devforum.okta.com/t/spa-uses-hash-fragments-how-to-set-up-redirect-uri-without-hash-fragments/7687/4 "2024-02-13T00:33:24Z")

</div>


