"Latest" on forum home displays last column sort

Steps to repro:

  1. I have a browser bookmark/link/homepage for https://meta.discourse.org/new?order=category (click on this link first)

  2. Now click on “Latest”. Posts are sorted incorrectly. Have to click “Latest” a second time to reset sort order.

Expected:

Latest should be sorted by activity on first load.

3 Likes

Note, you need to have at least 1 new topic for this to happen.

order=category is being passed implicitly somehow without being reflected in the url we should fix

3 Likes

I prefer to view New posts by Category, could last sort order be saved separately for the different sections?

Latest
New
Unread
Top

@eviltrout when you get back can you add this to your list

This is a bit of a hack, but it works. I think the root cause might be an ember bug, or a subtle difference in Ember’s internal APIs that we override:

https://github.com/discourse/discourse/commit/b2b7f4d90592a70a32c748130f0f82a732cd3090

7 Likes