0

I have a section <MySection> defined in system.xml, and a menu item called Settings in menu.xml. <MySection> can be found in Mangento Admin: Stores->Configuration->MySection, The link for the Setting should be the url of <MySection>. I have tried to add

action='admin/system_config/edit/section/'
, but it doesn't work as the key in url is different. I have also tried to redirect to that link in controller by doing:

$resultRedirect = $this->resultRedirectFactory->create();
$resultRedirect->setUrl('/admin/admin/system_config/edit/section/easytranslationplatform');

return $resultRedirect;

it failed as well. So, my question is that how to add a menu item that can link to Store->Configuration-><mySection> page.

2 Answers 2

4

You can use

action="adminhtml/system_config/edit/section/YOUR_SECTION_NAME"

2
  • Thankyou so much! Commented Mar 16, 2019 at 11:15
  • Are we able to link to a particular config "group" within a section? Commented Mar 21, 2022 at 22:28
0

Please try below code

action='adminhtml/system_config/edit/section/YOUR_SECTION_NAME'

Instead of

action='admin/system_config/edit/section/'
2
  • by adding my section name at the end, it works for me, thank you very much.
    – Paul Dong
    Commented Jun 30, 2016 at 23:46
  • You will need to add section name also at the end of this code. Commented Jul 5, 2016 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.