Add the page id condition, extracted from the core component.