From 0fca760126cd06c179118b089d1593865e272555 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 31 Jan 2014 17:55:40 -0500 Subject: [PATCH] FIX: Jump to bottom was broken by the `/last` path. --- app/assets/javascripts/discourse/lib/url.js | 1 + 1 file changed, 1 insertion(+) 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() {