I'm currently working with URL rewrites and I'm looking for a way to get the front name of a route from a module.
<router id="standard"> <route id="support" frontName="faq"> <module name="" /> </route> </router>
This is for a module that I'm customizing, not a new module. I don't want to have to change the id as I would probably need to change quite a bit of code.
I'd like to get the 'faq' front name by supplying the id 'support' (which it does for getUrl(), but that returns the front name appended to the base URL.
If all else fails I could probably just use the getUrl() method and just grab the last fragment I guess, but I'd like to use a better solution if possible.