Remove redirectToUrl function.