Hello, Magento Buddies!!
In Magento 2, if you are unsure whether a page is a homepage or not. Deep dive into Magento 2: Check if the Current URL is Home Page.
Attachment 16752
Complete Tutorial at https://magecomp.com/blog/magento-2-check-if-the-current-url-is-homepage/