07-11-2017, 05:56 PM
The easiest thing to do without modifying the Redirect class is to simply store the ID in a session variable. I'd use two, one for the current page and one for the previous page. Be sure to update the previous ID before the new current ID:
Code:
$_SESSION['previous_page_id'] = $_SESSION['current_page_id'];
Code:
$_SESSION['current_page_id'] = $current_page_id;