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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

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.
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?
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
(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: nobody → paulc
r+. Squash the test with the code and merge away.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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.
You need to log in before you can comment on or make changes to this bug.