Open tgely opened 4 years ago
https://github.com/osCommerce/oscommerce2/blob/de0e97d15d43ac6a9a6cfb2847134a82a0148f2b/catalog/admin/banner_manager.php#L472
Template link is urldecoded.
Use
var fetchStatsUrl = 'https://website/catalog/admin/banner_manager.php?action=fetchStats&banners_id={{id}}';
instead of URL encoded {{}} template definition
var fetchStatsUrl = 'https://website/catalog/admin/banner_manager.php?action=fetchStats&banners_id=%7B%7Bid%7D%7D';
One possible solution...
<script> $(function() { var fetchStatsUrl = '<?= urldecode(addslashes(OSCOM::link('banner_manager.php', 'action=fetchStats&banners_id={{id}}'))); ?>';
https://github.com/osCommerce/oscommerce2/blob/de0e97d15d43ac6a9a6cfb2847134a82a0148f2b/catalog/admin/banner_manager.php#L472
Template link is urldecoded.
Use
instead of URL encoded {{}} template definition
One possible solution...