added support for missing redirectURL