diff --git a/app/assets/javascripts/discourse/lib/url.js b/app/assets/javascripts/discourse/lib/url.js index 0a5774786..533469ce1 100644 --- a/app/assets/javascripts/discourse/lib/url.js +++ b/app/assets/javascripts/discourse/lib/url.js @@ -154,6 +154,7 @@ Discourse.URL = Em.Object.createWithMixins({ postStream = topicController.get('postStream'); if (newMatches[3]) opts.nearPost = newMatches[3]; + if (path.match(/last$/)) { opts.nearPost = topicController.get('highest_post_number'); } var closest = opts.nearPost || 1; postStream.refresh(opts).then(function() {