linkSocial and want to handle any errors on my custom page rather than on the default api error page.errorURL is being set in case it's not in the state object.redirectOnError always being this default error url see here.onAPIError errorURL is being overwritten by parseState