Same as above, can `pageManager.getContainingPage(ref)` be used to simplify the page path extraction?