There was an error while loading. Please reload this page.
2 parents 88a89f2 + 7c015e2 commit 3bc1de2Copy full SHA for 3bc1de2
1 file changed
public/application.js
@@ -15,6 +15,13 @@ angular.element(document).ready(function() {
15
//Fixing facebook bug with redirect
16
if (window.location.hash === '#_=_') window.location.hash = '#!';
17
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
+
25
//Then init the app
26
angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName]);
-});
27
+});
0 commit comments