Add parent path and state to page