From 419a6e7df355641a549dc0a32aa0aabc20b12594 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sat, 1 May 2021 16:44:20 +0800 Subject: [PATCH] Fix broken preview link on some installation --- lib/api/api_util.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/api_util.dart b/lib/api/api_util.dart index 5ca6d01b..00e95221 100644 --- a/lib/api/api_util.dart +++ b/lib/api/api_util.dart @@ -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"; }