Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Based on the D7 story here https://www.drupal.org/node/1803758
Possible fix:
Check for the existence of drupalSettings.path.pathPrefix
and prepends it to viewPath
in js/base.js
Drupal.Views.parseViewArgs = function (href, viewPath) {
+ // Provide language prefix.
+ if (drupalSettings.path.pathPrefix) {
+ var viewPath = drupalSettings.path.pathPrefix + viewPath;
+ }
var returnObj = {};
var path = Drupal.Views.getPath(href);
Comment | File | Size | Author |
---|---|---|---|
#3 | views-language_prefix_for_ajax-2600642-3.patch | 845 bytes | D4K0 |
Comments
Comment #2
D4K0 CreditAttribution: D4K0 as a volunteer commentedComment #3
D4K0 CreditAttribution: D4K0 as a volunteer commentedAttached patch checks for the existence of drupalSettings.path.pathPrefix and prepends it to viewPath.
Comment #4
LendudeMoving to the right queue.
The patch in #3 doesn't apply. Could you create a patch with the steps described in https://www.drupal.org/node/707484?
Comment #5
xjmI believe this is a duplicate of #2600804: AJAXified glossary view arguments fail when Language URL detection enabled?