var url = document.location.hash;var anchor = url.split('#');if (anchor.length == 1){	var redirect = 'http://'+document.location.host+'/#'+document.location.pathname;	window.location = redirect}