diff -u b/plugins/linkit_search/file.class.php b/plugins/linkit_search/file.class.php --- b/plugins/linkit_search/file.class.php +++ b/plugins/linkit_search/file.class.php @@ -110,7 +110,7 @@ case LINKIT_FILE_URL_TYPE_DIRECT: $path = file_create_url($entity->uri); if (strpos($path, $GLOBALS['base_url']) === 0) { - $path = ltrim(base_path(), '/') . ltrim(str_replace($GLOBALS['base_url'], '', $path), '/'); + $path = ltrim(str_replace($GLOBALS['base_url'], '', $path), '/'); } return linkit_get_insert_plugin_processed_path($this->profile, $path, array());