if (location.pathname != '/') {
  location.href = '/#' + location.pathname + location.search;	
}
