Fixing the CS-Cart pagination issue with Firefox

by HELO Store


This is a general issue with older CS-Cart versions (< 4.0, confirmed: 3.0.4, 3.0.5) and new versions of Firefox.

This behavior is not really a "bug" nor a CS-Cart issue per se, but a deprecated feature in Firefox, as certain browsers (like Chrome) do not replicate this behavior.

The issue was isolated to file: /lib/js/history/jquery.history.js. The jQuery History Plugin's function is to offer backward and forward navigation in JavaScript applications via browsers buttons "Next" and "Back". Both customer and administrator areas are effected by this issue since they both use this javascript file. More specifically, all pages that contain pagination (links to pages 1, 2, 3...) are affected, and, therefore, I highly recommend you to patch file above as soon as possible.

This plugin is not longe maintained by its creator and, in subsequent CS-Cart versions, it was completely removed replaced.


To patch up this issue replace this line:

return $.browser.mozilla ? hash : decodeURIComponent(hash);

.. with this line:

return decodeURIComponent(hash); // <-- patch, patch, ws@da: Poopsilon, Mozilla!

I hope this solves your problem. Good luck!

Related bug reports:переход-на-следующую-страницу-в-категориях-не-р/