aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java6
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