We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0237c1 commit 79b9497Copy full SHA for 79b9497
WordPressUtils/src/main/java/org/wordpress/android/util/UrlUtils.java
@@ -10,7 +10,6 @@
10
import java.io.UnsupportedEncodingException;
11
import java.net.IDN;
12
import java.net.URI;
13
-import java.net.URL;
14
import java.net.URLDecoder;
15
import java.net.URLEncoder;
16
import java.nio.charset.Charset;
@@ -214,4 +213,8 @@ public static boolean isImageUrl(String url) {
214
213
return cleanedUrl.endsWith("jpg") || cleanedUrl.endsWith("jpeg") ||
215
cleanedUrl.endsWith("gif") || cleanedUrl.endsWith("png");
216
}
+
217
+ public static String appendPreviewURLParameter(String url) {
218
+ return Uri.parse(url).buildUpon().appendQueryParameter("preview", "true").build().toString();
219
+ }
220
0 commit comments