Skip to main content
18 events
when toggle format what by license comment
Jun 18, 2023 at 17:30 comment added Virang Jethva @Tushar it doesn't work for me. facing the same issue of too many redirects. Using Magento 2.4.5 p1. I'd appreciate the help.
Sep 24, 2021 at 8:57 comment added Tushar Upvote not matter Atul, I happy, I helped you,
Sep 23, 2021 at 14:04 comment added explorer Thanks Tushar for help, I don't have enough reputation to upvote,
Sep 23, 2021 at 7:07 comment added explorer please check my updated code, Even that is not working for me.
Sep 23, 2021 at 7:00 comment added Tushar I checked in magento 2.4.3 latest version its worked, If you get issue let me know
Sep 23, 2021 at 6:53 comment added Tushar Just change your redirection controller action,
Sep 23, 2021 at 6:52 comment added Tushar I updated the answer, Use that one, It'll worked
Sep 23, 2021 at 6:52 history edited Tushar CC BY-SA 4.0
added 611 characters in body
Sep 23, 2021 at 6:46 comment added explorer code added in question, please check.
Sep 23, 2021 at 6:22 comment added Tushar if possible can you please send me your observer file?
Sep 23, 2021 at 6:20 comment added Tushar Really ? Can you please try to remove the redirection code from POST dispatch and check where it'll redirect by default and tell me
Sep 23, 2021 at 6:17 comment added explorer controller_action_postdispatch - even after using this, I am getting same issues.
Sep 23, 2021 at 6:10 comment added Tushar Okay, Let me check,
Sep 23, 2021 at 6:09 comment added Tushar I thing you have to used controller_action_postdispatch because of if you used predispatch it means, Your observer call before, after you observer again magento need to going to check main controller action, So it'll display to many redirect,
Sep 23, 2021 at 6:09 comment added explorer controller_action_predispatch - I am using this event. also please test on magento 2.4.3. as this was working before on previous versions.
Sep 23, 2021 at 6:07 comment added Tushar Okay, Can you please tell me which event you are using?
Sep 23, 2021 at 6:04 comment added explorer it's not working for me. showing error - 'too many redirects'
Sep 22, 2021 at 13:26 history answered Tushar CC BY-SA 4.0