Defect #5138
closed
Don't use Ajax for pagination
Added by Kenn Wilson over 14 years ago.
Updated over 13 years ago.
Description
Redmine currently uses Ajax to load pages in the forums. While the pagination links have URLs like boards/1?page=2
, clicks are actually intercepted by JavaScript which loads the next page of results without changing the URL.
While it's true that there's little value to bookmarking individual pages of forums posts, as they change frequently, the real problem is that it breaks browser behavior when using the back button after reading a particular thread. The browser will reload the URL without the ?page=N
query string, resulting in the first page of posts being displayed, regardless of what page the reader was on initially.
Browser behavior noted in Safari and Firefox on Mac OS X.
I've just realized this applies to issue lists as well. Thanks.
I say leave the AJAX in but add a history manager of some sorts. Maybe ReallySimpleHistory could be a start?
Then no back-/forwardbuttons will break.
+1 to this - its really annoying to read the redmin.org forum, get to page 20 of forum questions, read one, click back and find you have to click all the way through to get back to page 20! REALLY annoying.
If there was a 'return to forum list' link, that'd be ok, but there is nothing except the back button. The back button appears to work correctly on the issues list, so somewhere this was fixed (or un-ajaxed). Either way, it really is broken functionality at present.
+1
I'm surprised this is not seen as a major problem (a Rails app that works horribly on a Mac!). I am trying to get this introduced at work instead of Jira but can't in any honesty recommend it you can't reliably navigate through multipage issues lists.
I notice the same problem occurs on the plugins list - go explore a plugin's details and when you hit the back button you go back to page 1.
This is on Safari but I too have seen it on Firefox on Mac.
Er, also related to #1965.
In #7594, I've created a patch to temporarily solve this problem until a real solution exists. It disables Ajax updates and uses direct linking for pagination.
- Subject changed from Don't use Ajax for forum pages to Don't use Ajax for pagination
- Category changed from Forums to UI
- Status changed from New to Closed
- Target version set to 1.2.0
- Resolution set to Fixed
Ajax pagination removed in r5302.
- Has duplicate Defect #657: Back button - loses current page after viewing an issue - IE only added
- Has duplicate Feature #5572: Build search queries in the address bar added
Also available in: Atom
PDF