Fix for fragments in urls