I extracted this out into a helper — i think we’ll have to handle URLs that start with `//`, and I think it reads better to say `if (isAbsolutePath(path))`.