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.

Manashvi Birla
8,8739 gold badges29 silver badges53 bronze badges
asked Jun 29, 2016 at 21:12

2 Answers 2

4

You can use

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

answered Jun 30, 2016 at 6:13
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/'
answered Jun 30, 2016 at 4:30
2
  • by adding my section name at the end, it works for me, thank you very much. 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

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.