I am new to Magento and currently facing a task related to Magento routing. I’m hoping you can help me complete it.
I have successfully created a new page with a specific URL. Now, I want to add a new configuration option in the admin panel with the field name: ‘PageURL’. The admin should be able to set this field by inputting a URL, and when users type this URL, they should be directed to my new page.
I have managed to create the field, but I’m unsure about how to retrieve its value and use it as the URL for my page. Can someone guide me on how to achieve this? Your assistance will be greatly appreciated. Thank you!