mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Jump to bottom was broken by the /last
path.
This commit is contained in:
parent
3deb055110
commit
0fca760126
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue