Make PagefilesManager::url() hookable. Note that the hook function can retrieve $page from $event->object->page.