Modified page loading to prefer hash instead of query string