core: Update handle_connected to use uri.