When using node_embed via CKEDITOR, the node selection iframe's src (/ckeditor-node-embed) should keep the current language prefix for multilingual sites.

The problem is in the NodeEmbed plugin -> plugin.js file:
Drupal.settings.basePath + 'ckeditor-node-embed', should contain the path prefix (e.g. en, he..).
Possible solution is changing the above to:
Drupal.settings.basePath + Drupal.settings.pathPrefix + 'ckeditor-node-embed',

Patch is attached.

Please review and commit to the dev branch.

Thanks :)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

entuland’s picture

The proposed change works for me.