hello.js icon indicating copy to clipboard operation
hello.js copied to clipboard

Page loading twice after successful login

Open mset opened this issue 6 years ago • 1 comments

I may be doing something wrong..

I use hellojs in a SPA with Azure B2C; page navigation is used instead of popups. The setup is working and there are no errors. I have noticed, however, that the page gets loaded twice after logging in - when B2C redirects back to the SPA.

The first load is triggered by the redirect from B2C. The second load happens as a result of the location.assign(p.page_uri); call at https://github.com/MrSwitch/hello.js/blame/master/src/hello.js#L1383

The application loads once and seems to continue to function correctly if the location.assign(...) call is removed; I am wondering if it is needed? Perhaps in some other setups to the one used in my application, or is it completely superfluous?

What are your thoughts? Marek

mset avatar Feb 07 '19 12:02 mset

Same problem with my SPA in vueJS

Keko94 avatar Mar 14 '19 12:03 Keko94