Open
Bug 529579
Opened 15 years ago
Updated 5 years ago
Sort order lost when hitting back?
Categories
(bugzilla.mozilla.org :: Search, defect, P5)
Tracking
()
NEW
People
(Reporter: zandr, Unassigned)
References
Details
OK, I'm not certain this is a regression, but as I've just noticed this annoyance, I'm thinking it came with 3.4.3. If you resort a search by clicking on a column header, then click through to a bug, clicking the browser back button to return to the search results loses the sort order. Pretty sure this didn't happen before, but if I'm just hallucinating, I won't take INVALID personally. :)
Comment 1•15 years ago
|
||
Can you reproduce it on https://bugzilla-stage.mozilla.org/ ? That's still running Bugzilla 3.2 on it (the code we were running before we upgraded).
Comment 2•15 years ago
|
||
Yeah, I can reproduce it there, so it's not a regression. Still a bug though. :) CCing some js gurus that might have ideas.
Comment 3•15 years ago
|
||
I would expect this behavior unless you're using Firefox with it's magical BFCaching. There are a few fixes for this. The super easy fix is to use a hidden input field that contains and is updated with the current sort ordering. The problem is this is that you can't bookmark the ordering OR send it to someone and have them see it the same way you did. But it does fix the bug specified here. The more complex fix is to use something like YUI's History manager that can append the sort order to the URL via anchor tags. The nice thing about this you get the URL that contains the sort ordering and you can use back and forward buttons. The bad news is it can break Firefox's BFCaching, or it did the last time i looked at it. If you want to, you can use a cookie, the reason why IMO this is sily is b/c you then have to worry about clearing the cookie on the search page so the user doesn't get the same ordering on a different search and all sorts of other fun stuff. But the cookie option is a viable option as well technically. All three of these should work in all browsers.
Assignee | ||
Updated•13 years ago
|
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
Updated•8 years ago
|
Priority: -- → P5
Updated•6 years ago
|
Component: General → Search
You need to log in
before you can comment on or make changes to this bug.
Description
•