Closed (works as designed)
Project:
Voting API
Version:
7.x-2.15
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Sep 2022 at 13:03 UTC
Updated:
1 Oct 2022 at 17:46 UTC
Jump to comment: Most recent
Comments
Comment #2
tr commentedWhat does this mean? Voting API is a framework. It doesn't provide a way to vote (other than programmatically) and doesn't do any redirects. You are using some other module to allow users to vote on content, and that other module or some other method is doing the redirects.
Comment #3
joinso commentedSorry for the confusion.
The issue is in Fivestar.
Comment #4
tr commentedFivestar doesn't do any redirects either.
Comment #5
joinso commentedYes:In fivestar/js/fivestar.ajax.js:
(function($){ // Create local scope.
Drupal.ajax.prototype.commands.fivestarUpdate = function (ajax, response, status) {
response.selector = $('.fivestar-form-item', ajax.element.form);
ajax.commands.insert(ajax, response, status);
$url=$("#fivestar-custom-widget").attr('action');
document.location=$url;
};
})(jQuery);
Yes, you are right, FiveStar does not do redirects.
Comment #6
joinso commentedHi!
We can close this issue.
This is not related to PHP 8 and/or Voting API.
Regards,
Jordi
JOINSO
Comment #7
tr commentedAs per #6.