Merge pull request #568 from floydpink/feature-fix-535

Fix the Google OAuth Redirect Bug - #535
This commit is contained in:
Liran Tal
2015-07-29 16:57:51 +03:00

View File

@@ -15,6 +15,13 @@ angular.element(document).ready(function() {
//Fixing facebook bug with redirect
if (window.location.hash === '#_=_') window.location.hash = '#!';
// 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 + '/#!';
}
//Then init the app
angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName]);
});
});