Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 55f5cb66d47a1b9ebd763f1c3fc1c6b032ac043b 1 parent cef45bb
@halkyon halkyon authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.