fixes #6661: trailing slash is not required in urls