FS-8636 [verto_communicator] - Fix URI mismatch before angular bootstraps

This commit is contained in:
Jaon EarlWolf 2015-12-17 18:25:52 -03:00
parent 010db753f6
commit 21ee58558d

View File

@ -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>