Totally Zenned
- Join Date:
- Feb 2012
- Location:
- mostly harmless
- Posts:
- 1,818
- Plugin Contributions:
- 4
"/ajax.php" adds itself to the navigation history
Steps to Replicate:
- Add an item to the shopping cart.
- Visit shopping cart page.
- At this point "Back to Shopping" returns the URL to the last page.
- Refresh the shopping cart page (or update the quantity of a product).
- At this point "Back to Shopping" no longer returns the URL to the last page.
It appears when "/ajax.php" is loaded via JavaScript, the contents of the navigation history are being updated to add ```
"/index.php?main_page=index&act=ajaxPayment&method=setNoscriptCookie"
Perhaps not the correct fix, but adding the following line to "/ajax.php" may be a workaround:
require ('includes/application_top.php');
$_SESSION['navigation']->remove_current_page(); // Remove page from navigation history
$language_page_directory = DIR_WS_LANGUAGES.$_SESSION['language'].'/';
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker