For a multilingual site using path prefix for language determination, when a block created by a view is refreshed, it always returns the view for the default language, rather than the current language. This is because the URL used for the refresh AJAX call in block_refresh.js does not include the language path. In block_refresh.js, references to
Drupal.settings.basePath + 'block_refresh/'
should be changed to:
Drupal.settings.basePath + Drupal.settings.pathPrefix + 'block_refresh/'
Comments
Comment #1
5t4rdu5t commentedThank you cfmcoder! It helped me a lot. I hope your fix gets included in the next release of this module.
Comment #3
tripper54 commentedthanks, cfmcoder. Committed and pushed to dev!