Update webPagePost to handle error redirection