fix bug with fragment identifiers in url handling