I am in the process of creating a web application using AngularJS and Firebase. Recently, I added a second page along with an ng-view to my index file. In order to facilitate login via Facebook or Google, I am utilizing the $firebaseAuth service.
However, I have encountered an issue where after logging in, the angular routing breaks. This is because the $firebaseAuth service redirects to the site's URL without a trailing slash, which Angular apparently requires for proper functioning (especially when using the $authWithOAuthPopUp() method).
For example:
https//app.firebaseapp.com/#/
becomes https://app.firebaseapp.com/#
To resolve this issue, I find myself having to refresh the page to bring back the missing forward slash at the end.
Is anyone else facing this common problem, and if so, what are some potential solutions?