0

I have a controller that is executed in the system configuration. The desired result is that the code is executed and is redirected back to its original page. When the url keys are active, the page is always redirected back to the admin dashboard rather than the system configuration. When the keys are off, the redirect works as intended. How can I do a proper redirect with the keys on?

  public function execute()
{
    $this->helper->testConnections();
    $this->_redirect('admin/system_config_edit/edit/section/settings/');
}
0

You can use:

"adminhtml/system_config/edit/section/YOUR_SECTION_NAME"

In this case:

$this->_redirect('adminhtml/system_config/edit/section/settings/');

E.g:

$this->_redirect('adminhtml/system_config/edit/section/currency'');
  • Thanks for the insight! Unfortunately, there was no change. I tried both $this->_redirect('adminhtml/system_config/edit/section/settings/') and $this->_redirect('adminhtml/system_config/edit/section/currency/') with and without the '/' at the end, and I was still redirected back to the dashboard – StevanZakel May 23 '17 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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