From 6048c9e100dfaa7667aaf1e1fab09f1b99c60cbd Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 6 Jun 2014 10:13:32 -0400 Subject: [PATCH] Let's switch back to using post numbers rather than `last` for links to the last post. We'll keep support for the old format, but start linking directly to the last post. --- app/assets/javascripts/discourse/models/topic.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/models/topic.js b/app/assets/javascripts/discourse/models/topic.js index 5d25f25ba..45cc59ec5 100644 --- a/app/assets/javascripts/discourse/models/topic.js +++ b/app/assets/javascripts/discourse/models/topic.js @@ -73,11 +73,7 @@ Discourse.Topic = Discourse.Model.extend({ urlForPostNumber: function(postNumber) { var url = this.get('url'); if (postNumber && (postNumber > 0)) { - if (postNumber >= this.get('highest_post_number')) { - url += "/last"; - } else { - url += "/" + postNumber; - } + url += "/" + postNumber; } return url; },