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

5t4rdu5t’s picture

Thank you cfmcoder! It helped me a lot. I hope your fix gets included in the next release of this module.

  • Commit 83f849a on 7.x-2.x by tripper54:
    Issue #1300164 by cfmcoder: support multilingual path prefix
    
tripper54’s picture

Issue summary: View changes
Status: Active » Fixed

thanks, cfmcoder. Committed and pushed to dev!

  • Commit 83f849a on 7.x-2.x, 8.x-1.x by tripper54:
    Issue #1300164 by cfmcoder: support multilingual path prefix
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.