a single `path_to_url` function with tests