Merge pull request #642 in FS/freeswitch from ~JAONZE/freeswitch:bugfix/FS-8636-verto-communicator-autocall-does to master
* commit '21ee58558d2421e4a75972bd6462ef93fce8db79': FS-8636 [verto_communicator] - Fix URI mismatch before angular bootstraps
This commit is contained in:
commit
f9fc23daaa
|
@ -33,6 +33,18 @@
|
|||
<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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue