Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Magento 2: Check if the Current URL is HomePage

  1. #1

  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Step by step instructions to check assuming current url is landing page in Magento 2
    3 Steps to check on the off chance that current url is landing page in Magento 2. Stage 1: Declare in Mageplaza_HelloWorld.
    Stage 1: Declare in Mageplaza_HelloWorld.
    Stage 2: Declare work in format .phtml document.
    Stage 3: Get yield in record.

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    You can attempt this: Inject a case of \Magento\Framework\App\Request\Http in your group constructor. Assuming that you are in a regulator you don't have to do it.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •