Micrsoft Authentication library not working properly for hashed route with tanstack router
I have an implementation of the tanstack router with
_auth.tsx
file and _authenticated.tsx
file for the protected route and their code is same with condition change as shown:
so while doing a popup login method using the msal
library the login works fine for most of the cases but sometimes it breaks giving hash_empty_error
and I looked at it and it mentiones the root cause of this might be the removal of hash form the URL. I might be wrong posting this issue in the tanstack router forum but i am stuck at this moment and couldn't find a solution for this.
This is my login.lazy.tsx
file.
The URL shows /login?redirect=%2F
. Not sure if this redirect param is replacing the router.
Also, how to remove the ?redirect=%2F
from the URL? I don't want that.0 Replies