diff --git a/mastodon/src/main/java/org/joinmastodon/android/utils/Tracking.java b/mastodon/src/main/java/org/joinmastodon/android/utils/Tracking.java index 93fb6aab21..4edbe37983 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/utils/Tracking.java +++ b/mastodon/src/main/java/org/joinmastodon/android/utils/Tracking.java @@ -64,7 +64,7 @@ public class Tracking{ @NonNull public static String removeTrackingParameters(@NonNull String url){ Uri uri=Uri.parse(url); - if(uri==null) + if(uri==null || !uri.isHierarchical()) return url; Uri.Builder uriBuilder=uri.buildUpon().clearQuery();