diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java index 6e744fd4..42bc12d2 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java @@ -60,7 +60,11 @@ public class LinkResolverActivity extends AppCompatActivity { CustomThemeWrapper mCustomThemeWrapper; private Uri getRedditUriByPath(String path) { - return Uri.parse("https://www.reddit.com" + path); + if (path.charAt(0) != '/') { + return Uri.parse("https://www.reddit.com/" + path); + } else { + return Uri.parse("https://www.reddit.com" + path); + } } @Override |