IMO, it'd make more sense to start with a fully-constructed `URL`, then pull out the path here.