Support for # and ? in urls