Adjust the Frontend::indexPageIfApplicable() method