Narrowed it down to js/base.js
Attached is a patch, it checks for the existence of Drupal.settings.pathPrefix and prepends it to viewPath.
This makes if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/') pass, as without the language prefix path.substring(0, viewPath.length + 1) was removing the last 3 characters of the path
if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/')
path.substring(0, viewPath.length + 1)
Without this patch, this happens:path.substring(0, viewPath.length + 1) == en/admin/organizatioviewPath + '/' == admin/organizations/
viewPath + '/'
With this patch:path.substring(0, viewPath.length + 1) == en/admin/organizations/viewPath + '/' == en/admin/organizations/
Thank your for this patch. It solved my bug too!
It worked with me too!
I tried this with latest views "7.x-3.7" version and it's working good.
I applied this patch to 7.x-3.7 and the ajax call works also with language prefixes.
thanks @bsuttis :) it works perfect.
i tested it in the dev version to help this patch to be commited.
i had the same problem: the glossary view didnt work with ajax in a multilingual site, but it worked without ajax.
i applied the patch in the dev version and now ajax works.
i hope that it can be commited to the dev version.
thanks to all people that contributes to views :)
Applyed the patch to 7.x-3.7 which solved the problem using glossary + ajax + internationalization / i18n.
Also added i18n tag to this issue, it's might be hard to find the patch. Hope that's right.
JUST what I was looking for. I must admit it took me some time to find this thread. I wonder why this patch is not in Views 3.8...
I can confirm that patching 3.8 works as well. This is a bug though and should be fixed permanently right?
1: views-language_prefix_for_ajax-1803758-1.patch queued for re-testing.
The patch works with 3.8 and DEV. I hope it gets added to the next release.
This works, can we get this committed?
I confirm this is working for me too with Views 3.8
too bad it was not commited yet...
Still working with views 7.X-3.10
Also confirming that this patch works for me.
I've applied this patch to 7.X-3.11 and it fixed my broken ajax calls with language prefixes. THX.
Any work will be done against the dev branch, that's why it's set to that.
Drupal is a registered trademark of Dries Buytaert.