If it's a php page you can actually use some logic to put the following into it but I will assume it is not..
Let us use an example page you want people to be redirected to named
my_portal_pageCreate a php page that you use to direct users to and put the following into it:
ie. let's call this page
toledo_window_boxglobal $context;
$_SESSION['site_redirect'] = 'Willerby';
if ($context['user']['is_guest'])
@redirectexit('action=login');
else
redirectexit('page=my_portal_page');
Now edit this file:
Sources / LogInOut.phpfind:
// Just log you back out if it's in maintenance mode and you AREN'T an admin.
replace with:
/* Redirect the user to a specific page if opted */
if ((!empty($_SESSION['site_redirect'])) && $_SESSION['site_redirect'] == 'Willerby')
{
$_SESSION['site_redirect'] = false;
redirectexit('page=my_portal_page');
}
// Just log you back out if it's in maintenance mode and you AREN'T an admin.
Now when you link the page:
http://YOUR_SITE/index.php?page=toledo_window_boxIf the person is not already logged in they will be directed to the login page and when they finish logging in it will redirect them to your other page.
If they are already logged in, it will just redirect them to your other page.