-- HikaShop version -- : 3.5.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Google Chrome 67.0.3396.99
In the Categories listing, if I have more than 20 products, the pagination is visible at the bottom of the page, and I noticed that the link for the 2nd page (and all the others, actually) are not working properly...
What I see in the URL after clicking in the second page link is the following:
<URLOfThePage>?limitstart=20"%20onclick="javascript:%20var%20f%20=%20document.forms[
I managed to track the issue to the pagination file: "administrator/components/com_hikashop/helpers/pagination.php"
Inside the definition "HK_item_active", I see this:
array($this->_link($b)."\" onclick=\"var f = document.forms['adminForm".$this->hikaSuffix.$this->form."']; f.limitstart".$this->hikaSuffix.".value=".$b."; f.submit();return false;"),
It seems to me that only this would be enough:
array($this->_link($b)),
With what I think could be enough, I get the following URL when clicking on the link for the second page:
<URLOfThePage>?limitstart=20
I would like to confirm if this is a bug or not.
If it is not a bug, why is the url containing javascript code?
Best regards,
Victor