get_path function

Extract the path from a URL