]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8636 [verto_communicator] - Fix URI mismatch before angular bootstraps
authorJaon EarlWolf <jamonsterr@gmail.com>
Thu, 17 Dec 2015 21:25:52 +0000 (18:25 -0300)
committerJaon EarlWolf <jamonsterr@gmail.com>
Thu, 17 Dec 2015 21:25:52 +0000 (18:25 -0300)
html5/verto/verto_communicator/src/index.html

index 47bdf740cdd334c0700155110df13bbdefda809b..ecbb15c64f6b32caa2102f87b8df910386ee3a20 100644 (file)
       <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
       <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
     <![endif]-->
+
+    <script>
+      if (location.search) {
+        var tmp = location.search;
+        location.search = '';
+        location.href = getPathFromUrl(location.href) + (location.hash ? location.hash : '#/') + tmp;
+      }
+
+      function getPathFromUrl(url) {
+        return url.split(/[?#]/)[0];
+      }
+    </script>
   </head>
   <body>