Project

General

Profile

Actions

Defect #5138

closed

Don't use Ajax for pagination

Added by Kenn Wilson almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
Start date:
2010-03-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

Related to Redmine - Defect #7736: Going back to search results after examining a find goes to the first pageClosed2011-02-28

Actions
Related to Redmine - Defect #1965: Redmine is not Tab SafeClosedJean-Philippe Lang2008-09-29

Actions
Has duplicate Redmine - Defect #657: Back button - loses current page after viewing an issue - IE onlyClosedJean-Philippe Lang2008-02-13

Actions
Has duplicate Redmine - Patch #7594: Proper paginationClosed2011-02-09

Actions
Has duplicate Redmine - Feature #5572: Build search queries in the address barClosed2010-05-21

Actions
Actions #1

Updated by Kenn Wilson almost 15 years ago

I've just realized this applies to issue lists as well. Thanks.

Actions #2

Updated by Henrik Ammer almost 15 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.

Actions #3

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.

Actions #4

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.

Actions #5

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.

See http://www.contentwithstyle.co.uk/content/fixing-the-back-button-and-enabling-bookmarking-for-ajax-apps

Actions #6

Updated by Brian Lindahl almost 14 years ago

Er, also related to #1965.

Actions #7

Updated by Brian Lindahl almost 14 years ago

related to #657

Actions #8

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.

Actions #9

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.

Actions #10

Updated by Go MAEDA over 9 years ago

  • Has duplicate Defect #657: Back button - loses current page after viewing an issue - IE only added
Actions #11

Updated by Go MAEDA over 9 years ago

Actions #12

Updated by Go MAEDA over 1 year ago

  • Has duplicate Feature #5572: Build search queries in the address bar added
Actions

Also available in: Atom PDF