mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user