diff --git a/index.php b/index.php
index 368f28002b0..4174ba821a9 100644
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@
if (isset($USER->id)) {
$headerbutton = "wwwroot/login/logout.php\">".get_string("logout")."";
} else {
- $headerbutton = "wwwroot/login\">".get_string("login")."";
+ $headerbutton = "wwwroot/login/\">".get_string("login")."";
}
}
print_header("$site->fullname", "$site->fullname", "", "",