Index: openacs-4/packages/xowiki/www/resources/ckeip.js
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/ckeip.js,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/xowiki/www/resources/ckeip.js	24 Jun 2013 13:38:13 -0000	1.5
+++ openacs-4/packages/xowiki/www/resources/ckeip.js	18 Dec 2018 15:26:51 -0000	1.6
@@ -38,7 +38,7 @@
 
     // if the xowikiimage plugin is available we have to rewrite the wiki_image_links to image tags before loading
     if (settings.ckeditor_config.extraPlugins.indexOf("xowikiimage") != -1) {
-        var eip_html = calc_wiki_image_links_to_image_tags($(this).html());
+        var eip_html = calc_wiki_image_links_to_image_tags(window.location.pathname, $(this).html());
         $(this).html(eip_html);
     } else {
         var eip_html = $(this).html();
@@ -149,4 +149,4 @@
       return false;
     });
   });
-};
\ No newline at end of file
+};