All is done. It was a problem with incorrect calling tep_href_link() function as I expected. Many developers don't know how to use this function properly.
I left the original file on the ftp (www/catalog/includes/modules/product_listing-old.php) so you can compare both new and old files if you are interested what was changed (two tiny changes).