Yeah I agree with @pf_moore here, file://
AFAIK doesn’t support relative paths, e.g file URI scheme - Wikipedia calls out a couple of examples that show that the path after the host points at an absolute not a relative path on Unix / POSIX systems.
Separating out local paths for editable installs from the URI / URL would be great.