Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 3bc1de2

Browse files
committed
Merge pull request #568 from floydpink/feature-fix-535
Fix the Google OAuth Redirect Bug - #535
2 parents 88a89f2 + 7c015e2 commit 3bc1de2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

public/application.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ angular.element(document).ready(function() {
1515
//Fixing facebook bug with redirect
1616
if (window.location.hash === '#_=_') window.location.hash = '#!';
1717

18+
// Fixing google bug with redirect
19+
if (window.location.href[window.location.href.length - 1] === '#' &&
20+
// for just the error url (origin + /#)
21+
(window.location.href.length - window.location.origin.length) === 2) {
22+
window.location.href = window.location.origin + '/#!';
23+
}
24+
1825
//Then init the app
1926
angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName]);
20-
});
27+
});

0 commit comments

Comments
 (0)