diff --git a/r2/r2/models/listing.py b/r2/r2/models/listing.py index 58811a65b..755122410 100644 --- a/r2/r2/models/listing.py +++ b/r2/r2/models/listing.py @@ -75,6 +75,9 @@ class Listing(object): p.update({'after':None, 'before':prev._fullname, 'count':bcount}) self.before = prev._fullname self.prev = (request.path + utils.query_string(p)) + p_first = request.get.copy() + p_first.update({'after':None, 'before':None, 'count':None}) + self.first = (request.path + utils.query_string(p_first)) if self.nextprev and self.next_link and next: p = request.get.copy() p.update({'after':next._fullname, 'before':None, 'count':acount})