mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
FS-8636 [verto_communicator] - Fix URI mismatch before angular bootstraps
This commit is contained in:
parent
010db753f6
commit
21ee58558d
@ -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…
x
Reference in New Issue
Block a user