Skip to content

Instantly share code, notes, and snippets.

@hertsch
Last active December 15, 2015 20:19
Show Gist options
  • Save hertsch/5317258 to your computer and use it in GitHub Desktop.
Save hertsch/5317258 to your computer and use it in GitHub Desktop.
WebsiteBaker/Lepton: if an intro page and frontend login/logout is used at a logout the user will be redirected to the info page 'Website Under Construction'. To redirect the user to the intro page you must fix a problem in /account/logout.php as described below.
// in /account/logout.php replace line 50-57 with the following code:
if(INTRO_PAGE) {
// header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
header('Location: '.WB_URL.PAGES_DIRECTORY.'/intro.php');
} else {
header('Location: '.WB_URL.'/index.php');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment