Automatically turn a URL into a path