instead of the custom error-prone parser, to extract and update the path of the given URL Closes #9683