Automatically turn a URLs into a path