diff --git a/r2/r2/lib/utils/utils.py b/r2/r2/lib/utils/utils.py index 8fe52ac50..049b70ea3 100644 --- a/r2/r2/lib/utils/utils.py +++ b/r2/r2/lib/utils/utils.py @@ -574,7 +574,8 @@ class UrlParser(object): Adds the subreddit's path to the path if another subreddit's prefix is not already present. """ - if not self.path_has_subreddit(): + if not (self.path_has_subreddit() + or self.path.startswith(subreddit.path)): self.path = (subreddit.path + self.path) return self