Fixing the CS-Cart pagination issue with Firefox

20.10.2015
by HELO Store

Description

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.

Solution

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:

http://forum.cs-cart.com/topic/42155-admin-page-link-in-order-page-does-not-work-in-ie/

http://stackoverflow.com/questions/33134806/cs-cart-pagination-in-backend-orders/33238799#33238799

http://forum.cs-cart.com/topic/42230-переход-на-следующую-страницу-в-категориях-не-р/

https://bugzilla.mozilla.org/show_bug.cgi?id=135309

https://bugzilla.mozilla.org/show_bug.cgi?id=483304