I’m using the session tracker array to return to the correct page as suggested in a previous thread.
I’m using the following PHP to set a default url if this is the first page on the site that the user has visited:
$last_page = ($this->EE->session->tracker['1'] != '') ? $this->EE->session->tracker['1'] : 'objects';Then just echoing the $last_page variable in the link. It’s working fine in explorer and Firefox but fails if the page is reloaded in Safari or Chrome on Mac and PC. The url from the tracker array is ‘404’. In Safari if there is no previous page in the tracker array and it’s using my default value one page reload results in the 404. If there is a page in the tracker array it takes 2 reloads to return the 404 value. In Chrome the 404 value is returned after a single reload.