Source: How to check IsHomePage in Magento 2? Are we on the homepage?