From fc296d88dc7015c6624dd150a9426e91462fb2c9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 27 Aug 2015 13:11:57 -0400 Subject: [PATCH] FIX: Jumping to `last` was broken --- app/assets/javascripts/discourse/lib/url.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6 index fcfe6ecce65..f94c4c2bd54 100644 --- a/app/assets/javascripts/discourse/lib/url.js.es6 +++ b/app/assets/javascripts/discourse/lib/url.js.es6 @@ -220,7 +220,7 @@ const DiscourseURL = Ember.Object.createWithMixins({ postStream = topicController.get('model.postStream'); if (newMatches[3]) opts.nearPost = newMatches[3]; - if (path.match(/last$/)) { opts.nearPost = topicController.get('highest_post_number'); } + if (path.match(/last$/)) { opts.nearPost = topicController.get('model.highest_post_number'); } const closest = opts.nearPost || 1; const self = this;