Fork off part of url_to_structure() to get_current()

Per #264.