url fragment handling improvement