gets the URL right for old browsers