Fix broken preview link on some installation

This commit is contained in:
Ming Ming 2021-05-01 16:44:20 +08:00
parent d4541216af
commit 419a6e7df3

View file

@ -31,7 +31,7 @@ String getFilePreviewUrlRelative(
bool a,
}) {
final filePath = Uri.encodeQueryComponent(file.strippedPath);
var url = "core/preview.png?file=$filePath&x=$width&y=$height";
var url = "index.php/core/preview.png?file=$filePath&x=$width&y=$height";
if (mode != null) {
url = "$url&mode=$mode";
}