プロジェクト

全般

プロフィール

Vote #66886

完了

Don't use Ajax for pagination

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2010/03/20
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
27
issue_org_id:
5138
author_id:
5722
assigned_to_id:
0
comments:
11
status_id:
5
tracker_id:
1
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


journals

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":http://code.google.com/p/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.
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
Er, also related to #1965.
--------------------------------------------------------------------------------
related to #657
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Ajax pagination removed in r5302.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,7736,Going back to search results after examining a find goes to the first page
relates,Closed,1965,Redmine is not Tab Safe
duplicates,Closed,657,Back button - loses current page after viewing an issue - IE only
duplicates,Closed,7594,Proper pagination

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン1.2.0_27 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0