Use the ollowing code to get a routes front name:

The code will return “config”, if you add the following XML to your modules config.xml:

Getting the front name of a route programmatically
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: