calculate page_redirect