0

I have a requirement, where admin is performing certain action on a custom module, he should be redirected to admin-dashboard on error. I tried redirection codes with different values but they lead to 404 page. Moreover the admin url is customized not a customary one. its like admin.thesitename.com/index.php/securecontrolpanel

i am still trying but decided to ask here :) if i can get a quick help.

2

Your question is somehow unclear but I can give it a try.

In order to redirect to the dashboard use this in a controller

$this->_redirect('adminhtml/dashboard/index');

If that does not work for you then post your code in the question.

| improve this answer | |
  • thanks Marius, i too figured that, i got a clue in config.xml of adminhtml. – MTM May 21 '14 at 8:14
  • @MTM. Either accept this answer if it solved your problem or add your own answer describing what you did to solve the problem and accept that one. – Marius May 21 '14 at 8:45
  • the upvote you see for your answer is of mine :) – MTM May 21 '14 at 9:53

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.