Timeline for How to redirect from observer in after logout in Magento 2?
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 20, 2018 at 11:54 | comment | added | SagarPPanchal | perfect answer!!! its only working after applying cache:flush! made my day! +1 :) | |
Jul 5, 2016 at 6:58 | comment | added | Rakesh Jesadiya | I think you have to keep exit at end of redirect and check for issue debuging | |
Jul 5, 2016 at 6:55 | comment | added | Manish | There is no any error if I removed exit its works fine but it does not redirect , it executes its default. | |
Jul 5, 2016 at 6:51 | comment | added | Rakesh Jesadiya | sorry, i have try same code and its working for me. i doesn't know what issue have fetched. You can check for log if any error are genertae | |
Jul 5, 2016 at 6:50 | comment | added | Manish | No, doesnot work. | |
Jul 5, 2016 at 6:40 | comment | added | Rakesh Jesadiya | you can check after remove exit from observer and try | |
Jul 5, 2016 at 6:39 | comment | added | Manish | It doesn't gets signout ?? | |
Jul 5, 2016 at 6:32 | vote | accept | Manish | ||
Jul 5, 2016 at 6:38 | |||||
Jul 5, 2016 at 6:30 | comment | added | Manish | Thanks man, its working. This line is useless here i think: $controller = $observer->getControllerAction(); why we use exit, please can you little bit explain ?? | |
Jul 5, 2016 at 6:08 | comment | added | Rakesh Jesadiya | This is the working solutions. plz check it. | |
Jul 5, 2016 at 6:08 | history | edited | Rakesh Jesadiya | CC BY-SA 3.0 |
added 591 characters in body
|
Jul 5, 2016 at 6:00 | review | Low quality posts | |||
Jul 5, 2016 at 6:10 | |||||
Jul 5, 2016 at 5:57 | comment | added | Manish | ok, Let me try once. Thanks for quick feedback. | |
Jul 5, 2016 at 5:56 | comment | added | Rakesh Jesadiya | you can get hint from core file, magento2/vendor/magento/module-captcha/Observer/CheckUserLoginObserver.php | |
Jul 5, 2016 at 5:55 | comment | added | Manish | Same issue, I think $controller doesnot get value from observer any alternate solution. | |
Jul 5, 2016 at 5:48 | comment | added | Manish | No, should I need to recompile ?? | |
Jul 5, 2016 at 5:47 | comment | added | Rakesh Jesadiya | have you remove var folder? | |
Jul 5, 2016 at 5:46 | comment | added | Manish | got following error : PHP Fatal error: Uncaught Error: Call to a member function getResponse() | |
Jul 5, 2016 at 5:40 | history | answered | Rakesh Jesadiya | CC BY-SA 3.0 |