Changed to 2.x-dev since 1.x is security fix only. This still applies as-is to 2.x, and it's still necessary to fix the issue.
- Status changed to Needs work
about 1 year ago 2:45am 28 August 2023 - 🇺🇸United States jdleonard Austin, TX, USA
Bug still exists in Group 3.2.0. #27 and #19 apply cleanly, but do not resolve the problem. Removing the group permission from the view's access control setting does, but of course that access restriction is there for a reason!
- 🇳🇱Netherlands Jan-E
Patch in #19 🐛 403 error for views.ajax route on Group related views (with AJAX enabled) Needs work was already applied in Group 8.x-1.6.
#27 doesn't work with Drupal ^10.1 when a view's ajax is a GET. Here's an update to handle older core versions with POST and newer ones with GET. Manually tested with both Drupal 9.5 and Drupal 10.1, both with and without a base path, and with and without valid access. This is just begging for automated tests.
- 🇳🇱Netherlands Jan-E
@david.muffley in #31 🐛 403 error for views.ajax route on Group related views (with AJAX enabled) Needs work : can't you use
$_REQUEST
in stead of the switch between$_GET
and$_POST
? - Status changed to Needs review
9 months ago 3:17pm 7 March 2024 - 🇺🇦Ukraine HitchShock Ukraine
Refactored the last patch to make it Drupal 10 compatible.
- 🇺🇸United States maskedjellybean Portland, OR
Thanks all and thanks @HitchShock. #33 works for me in Drupal 10.2.3 and Group 1.6.0.
Adding some pieces of the error that is thrown by this issue so hopefully folks find this easier:
access denied Warning Path: /views/ajax?_wrapper_format=drupal_ajax
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\views\Controller\ViewAjaxController->ajaxView() (line 220 of /docroot/core/modules/views/src/Controller/ViewAjaxController.php)
- 🇮🇳India iamsruthi.s
@HitchShock applied this patch in Drupal 10.2.4 but not working for me, just scrolls to the top of the page.
- 🇧🇪Belgium blacksnipe
I had a similar issue with exposed filters (without Views Infinite Scroll) in D10.
Patch #33 by @HitchShock solves my issue. Not sure about VIS though.