Change URL handler spec.
Apply new API for new spec.