How to get the URL of a page/section in Magento admin

后端 未结 2 1211
春和景丽
春和景丽 2021-01-14 14:56

I can\'t seem to find a definitive answer on this one. How do you get a url to a page in the admin backend?

For example, let\'s say I have a module that uses a cont

2条回答
  •  自闭症患者
    2021-01-14 15:32

    I think I figured this one out, but please comment or add your own answer if I'm mistaken. My first issue was that my config.xml was configured incorrectly. I had instead of under the element. I also had standard instead of admin. Copy-Paste mistake ;)

    However, that still didn't seem to change the URL being returned, but that doesn't seem to matter. It's now correctly hitting my controller, even though the url I'm redirecting to doesn't contain the admin frontname. So I'm a bit confused about that, but regardless, it's working.

提交回复
热议问题