fix links to local files in editor
[redakcja.git] / apps / wiki / templates / wiki / bootstrap.html
index 02458e2..8428a60 100644 (file)
                 documentDiffUrl: function(id) { return '/editor/diff/' + id + '/'; },
                 documentRestoreUrl: function(id) { return '/editor/revert/' + id + '/'},
                 documentAttachmentUrl: function(attachmentName) {
-                    return '{{MEDIA_URL}}{{IMAGE_DIR}}{{slug}}/' + attachmentName;
+                    return '{{MEDIA_URL}}{{IMAGE_DIR}}{{gallery}}/' + attachmentName;
                 },
                 documentUrl: function(id, version) {
                     var url = '{% url 'wiki_editor' slug %}';