Change for #24252 - url support for register_publish

Support being able to pass a url into register_publish instead of a local path