Permalink
Browse files

BUGFIX Fixed dev/build not redirecting properly on first install of S…

…S website on IIS (from r93259)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93750 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent cef45bb commit 55f5cb66d47a1b9ebd763f1c3fc1c6b032ac043b @halkyon halkyon committed Nov 27, 2009
Showing with 2 additions and 3 deletions.
  1. +1 −1 core/control/ModelAsController.php
  2. +1 −2 core/control/RootURLController.php
View
2 core/control/ModelAsController.php
@@ -43,7 +43,7 @@ public function handleRequest(SS_HTTPRequest $request) {
// If the database has not yet been created, redirect to the build page.
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
$this->response = new SS_HTTPResponse();
- $this->response->redirect('dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
+ $this->response->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
$this->popCurrent();
return $this->response;
View
3 core/control/RootURLController.php
@@ -109,8 +109,7 @@ public function handleRequest(SS_HTTPRequest $request) {
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
$this->response = new SS_HTTPResponse();
- $this->response->redirect('dev/build/?returnURL=');
-
+ $this->response->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
return $this->response;
}

0 comments on commit 55f5cb6

Please sign in to comment.