new get_url interface with optional slug