fixed bad hash nav implementation

This commit is contained in:
Bachir Soussi Chiadmi
2015-05-12 16:44:34 +02:00
parent 9446d0b76f
commit ba7d7ff3c3
4 changed files with 50 additions and 13 deletions
@@ -55,6 +55,17 @@
<!-- remove the no-js as fast as possible -->
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<script type="text/javascript">
/* redirect sub page to ajax loaded with hash */
function checkRedirect(){
var loc = window.location;
console.log(loc);
if(loc.pathname !== "/"){
window.location = loc.origin + "/#" + loc.pathname;
}
};
checkRedirect();
</script>
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />