Originally Posted by
DigitalShadow
I have been trying to figure it out myself, but I can't
$_SESSION['navigation']->set_snapshot();
If I just set that, it seems to strip out the base page, I don't want it to strip the base page, please help.
So if page was...
website.com/module_here.php?variable=3333
it snapshots
website.com/?variable=3333
I want the snapshot to redirect back to the previous page and not strip any information out.
In your call to set_snapshot() if the page you are on does not include main_page= and it is not index.php, then need to provide the array information associated with the page that you are on...
These are the fields "reviewed":
Code:
'page' => $page['page'],
'mode' => $page['mode'],
'get' => $page['get'],
'post' => $page['post']);
Take a look at how it is done in: includes/modules/pages/checkout_payment_address/header_php.php around line 27.
The array method allows storing the get data as well as any post data that is considered necessary to return to the same "page"...
The function exists in includes/classes/navigation_history.php
Bookmarks