fixed bad hash nav implementation
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user