Commit 495f1891 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Make sure "home" link on the menu takes you to the front page, not the

My Emulab page when logged in.
parent 6b57f97c
......@@ -9,11 +9,11 @@ require("defs.php3");
#
# The point of this is to redirect logged in users to their My Emulab
# page.
#
#
if (($uid = GETUID())) {
$check_status = CHECKLOGIN($uid) & CHECKLOGIN_STATUSMASK;
if ($check_status == CHECKLOGIN_LOGGEDIN) {
if (!isset($stayhome) && $check_status == CHECKLOGIN_LOGGEDIN) {
# Zap to My Emulab page.
header("Location: $TBBASE/showuser.php3?target_uid=$uid");
return;
......
......@@ -270,7 +270,7 @@ function WRITESIDEBAR() {
$rootEmulab = 0;
}
WRITESIDEBARBUTTON("Home", $TBDOCBASE, "index.php3");
WRITESIDEBARBUTTON("Home", $TBDOCBASE, "index.php3?stayhome=1");
if ($rootEmulab) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment