Defect #5138
closedDon't use Ajax for pagination
0%
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.
Related issues
Updated by Kenn Wilson over 14 years ago
I've just realized this applies to issue lists as well. Thanks.
Updated by Henrik Ammer over 14 years ago
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.
Updated by Andy Bolstridge almost 14 years ago
+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.
Updated by Anonymous almost 14 years ago
+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.
Updated by Brian Lindahl almost 14 years ago
Same problem exists for browsing the issue list. See #3494 and #3494.
This appears to be a major fundamental problem in several areas of Redmine that shows the original developer's lack of experience in some areas of web development. Paged browsing should be implemented very carefully via Ajax. Either don't use it, or use a strategy such as modifying the URL with the hash mark ('#') to capture the page number.
Updated by Brian Lindahl almost 14 years ago
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.
Updated by Jean-Philippe Lang over 13 years ago
- 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.
Updated by Go MAEDA over 9 years ago
- Has duplicate Defect #657: Back button - loses current page after viewing an issue - IE only added
Updated by Go MAEDA over 9 years ago
- Has duplicate Patch #7594: Proper pagination added
Updated by Go MAEDA over 1 year ago
- Has duplicate Feature #5572: Build search queries in the address bar added