Right now the way the account/login.php page it redirects the visitor back to the index.php file:
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index'.PAGE_EXTENSION);
Is there a way to change this to redirect page to the page they were at when they logged in? Like if they login on a page named products.php it would bring them right back to products instead of index. Any ideas?