You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
Hi,
I get URL like localhost:3000/# when I use google authentication with passport.
I fixed the problem using the same way which has been used to fix the Facebook bug with redirect (public/modules/application.js):
//Then define the init function for starting up the application
angular.element(document).ready(function() {
// Fixing facebook bug with redirect
if (window.location.hash === '#_=_') window.location.hash = '#!';
// Then init the app
angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName]);
});
I added this part:
// Fixing google bug with redirect
if (window.location.href[window.location.href.length - 1] === '#' &&
// for just the error url (origin + /#)
(window.location.href.length - window.location.origin.length) === 2) {
window.location.href = window.location.origin + '/#!';
}