S
Then try this variant:
header('Location: ' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=view-persons-profile', array('id' => bx_get_logged_profile_id())));