Case when uri has fragment and does not have query