- Issue created by @Giuseppe87
- 🇮🇹Italy Giuseppe87
I've updated the example with the actual code I used to cause this behaviour.
- 🇮🇹Italy Giuseppe87
As workaround I've found that limiting the handled formats to 'html' wont' cause the loop.
E.g.
protected function getHandledFormats() { return ['html']; }
or just don't overriding the method of the parent class.
This obliviously works only if the subscriber doesn't need to intercept json\rest request. I haven't tested the case a json\rest request is handled inside the
on403
on404
methods. - Status changed to Closed: outdated
4 months ago 12:45am 12 January 2025 - 🇳🇿New Zealand quietone
@Giuseppe87, thanks for reporting back what you did to fix this on your site. To me that resolves this support request, so I am closing this issue.
If anyone is experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue → starting from "Install Drupal core". It would also help to search for duplicate issues.
Thanks!