authService.loginWithPopup() works, authService.loginWithRedirect() does not. Anuglar 10

Actually this solution is not suitable in my case. I am developing an Excel Add-in based on Angular. I am using officejs library which specifically requires hash based routing.

I’ve seen several articles where you are suggesting the usage of non-hash based routing for angular apps when loginWithRedirect is used. My impression is that even though is not advisory it is still possible. I am trying to do what is suggested in the following article Universal login and hash-based routing in angularjs app , but without any success.

Any suggestions?