FIX: Jump to bottom was broken by the `/last` path.
This commit is contained in:
parent
3deb055110
commit
0fca760126
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue