diff --git a/lib/setup.php b/lib/setup.php
index 0e324b741a221d7c9d79eab6723f596f5b8513af..f64842a9041483cbfa44e4c863a31d15f71c3f0d 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -23,7 +23,7 @@ if(isset($_POST['install']) AND $_POST['install']=='true') {
 		OC_TEMPLATE::printGuestPage("", "installation", $options);
 	}
 	else {
-		header("Location: $WEBROOT");
+		header("Location: $SUBURI");
 		exit();
 	}
 }