mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed dev/build not redirecting properly on first install of SS website on IIS (from r93259)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93750 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cef45bb95a
commit
55f5cb66d4
@ -43,7 +43,7 @@ class ModelAsController extends Controller implements NestedController {
|
|||||||
// If the database has not yet been created, redirect to the build page.
|
// If the database has not yet been created, redirect to the build page.
|
||||||
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
|
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
|
||||||
$this->response = new SS_HTTPResponse();
|
$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();
|
$this->popCurrent();
|
||||||
|
|
||||||
return $this->response;
|
return $this->response;
|
||||||
|
@ -109,8 +109,7 @@ class RootURLController extends Controller {
|
|||||||
|
|
||||||
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
|
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
|
||||||
$this->response = new SS_HTTPResponse();
|
$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;
|
return $this->response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user