diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php
index a529a154f5f..f229ea0a755 100644
--- a/lib/editor/htmlarea.php
+++ b/lib/editor/htmlarea.php
@@ -1430,7 +1430,12 @@ HTMLArea.prototype._createLink = function(link) {
f_title : link.title,
f_target : link.target
};
- this._popupDialog("link.php?id=", function(param) {
+ this._popupDialog("", function(param) {
if (!param)
return false;
var a = link;
@@ -1474,7 +1479,12 @@ HTMLArea.prototype._insertImage = function(image) {
f_width : image.width,
f_height : image.height
};
- this._popupDialog("insert_image.php?id=", function(param) {
+ this._popupDialog("", function(param) {
if (!param) { // user must have pressed Cancel
return false;
}