# Cannot redirect custom error page with # in URL

**URL:** <https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921>\
**Category:** Get Help\
**Tags:** error-page, vuejs, auth0\
**Created:** [February 25, 2022, 1:51pm UTC](https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921 "2022-02-25T13:51:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monster.nva](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monster.nva/32/35474_2.png) [@monster.nva](https://community.auth0.com/u/monster.nva)\
**Post date:** [February 25, 2022, 1:51pm UTC](https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921/1 "2022-02-25T13:51:56Z")

</div>

We are building a web application in Vuejs integrate with Auth0 to perform SSO.  
When config custom error page to [https://our-domain.com/app#/manage/error](https://our-domain.com/app#/manage/error), Auth0 always redirect to [https://our-domain.com/app?client\_id=xxxxxxxx&connectioxxxxxxxxxx&tracking=xxxxxx](https://our-domain.com/app?client_id=xxxxxxxx&connectioxxxxxxxxxx&tracking=xxxxxx) instead.  
It means, the URL from # was cut off.  
Trying to remove # in URL is an option, but just want to know do we have anything to do with Auth0?

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [February 28, 2022, 11:53am UTC](https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921/2 "2022-02-28T11:53:22Z")

</div>

Hi @monster.nva , welcome to the community!

There is a workaround for working with SPAs and their `../#/..` routing mentioned here:

> **[Customize Email Templates](https://auth0.com/docs/customize/email/email-templates#dynamic-redirect-to-urls)**
>
> Learn how to customize your emails with Liquid templating syntax.

To paraphrase the above, you would need to set up a server side URL with a route parameter that can redirect the user to the relevant part of your SPA app upon receiving the request from Auth0, due to how SPA frameworks’ routing differs from the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) spec.

---

<div class="post-metadata">

**Author:** ![monster.nva](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monster.nva/32/35474_2.png) [@monster.nva](https://community.auth0.com/u/monster.nva)\
**Post date:** [March 1, 2022, 12:43am UTC](https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921/3 "2022-03-01T00:43:57Z")

</div>

Hi @sgo  
Thanks for your information.  
That’s exactly what we are handling now.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 16, 2022, 12:44am UTC](https://community.auth0.com/t/cannot-redirect-custom-error-page-with-in-url/78921/4 "2022-03-16T00:44:35Z")

</div>

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