Closed
Bug 556418
Opened 15 years ago
Closed 15 years ago
[k] Clicking through the paginator on search results keeps appending new pages to the URL
Categories
(support.mozilla.org :: Search, defect)
support.mozilla.org
Search
Tracking
(Not tracked)
VERIFIED
FIXED
2.0
People
(Reporter: jsocol, Assigned: paulc)
References
()
Details
If I click through several pages of search results via the paginator, I end up with:
https://support-stage-new.mozilla.com/k/en/search?q=install&page=124&page=118&page=1&page=6
We need to make sure it replaces, not appends, new page values.
| Assignee | ||
Comment 1•15 years ago
|
||
What's the preferred approach here? I'm assuming any of these involves changing the behavior of |urlparams. Would it be better to:
* whitelist multivalued params, overwrite the rest by default
* blacklist single valued params, i.e. specify the ones to overwrite, and append to the rest by default
* something else?
| Reporter | ||
Comment 2•15 years ago
|
||
Just overwrite this one instead of appending. I assume this happens in the paginator, not |urlparams.
Summary: [z] Clicking through the paginator on search results keeps appending new pages to the URL → [k] Clicking through the paginator on search results keeps appending new pages to the URL
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Just overwrite this one instead of appending. I assume this happens in the
> paginator, not |urlparams.
Yes.
r? at http://github.com/pcraciunoiu/kitsune/commit/6fb956119ee179c4c12dfdd1a1bebd57f7dd8ba1
| Assignee | ||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Yes.
> r? at
> http://github.com/pcraciunoiu/kitsune/commit/6fb956119ee179c4c12dfdd1a1bebd57f7dd8ba1
Oops. Make that http://github.com/pcraciunoiu/kitsune/commit/3703344e240fcdc0fa65c95f2cf01844dadd14c9
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → paulc
| Assignee | ||
Comment 5•15 years ago
|
||
| Reporter | ||
Comment 6•15 years ago
|
||
r+. Squash the test with the code and merge away.
| Assignee | ||
Comment 7•15 years ago
|
||
Squashed and merged and pushed.
http://github.com/jsocol/kitsune/commit/d4acd8d9b86f9f2c0bd10d24d960e5810ec95516
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 8•15 years ago
|
||
Verified FIXED:
Now just retain and update a single page #, on URLs such as https://support-stage-new.mozilla.com/k/en-us/search?q=install&page=9, when clicking through the pages.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•