fixed url indexOf in header