FIX Query string not built properly

This commit is contained in:
Daniel Hensby 2016-05-23 19:04:28 +01:00
parent 3be0f394bf
commit 092c8986cb
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 4 additions and 4 deletions

View File

@ -47,9 +47,9 @@ class ModelAsController extends Controller implements NestedController {
$this->getResponse()->redirect(Controller::join_links(
Director::absoluteBaseURL(),
'dev/build',
'?' . array(
'?' . http_build_query(array(
'returnURL' => isset($_GET['url']) ? $_GET['url'] : null,
)
))
));
}
}

View File

@ -115,9 +115,9 @@ class RootURLController extends Controller {
$this->getResponse()->redirect(Controller::join_links(
Director::absoluteBaseURL(),
'dev/build',
'?' . array(
'?' . http_build_query(array(
'returnURL' => isset($_GET['url']) ? $_GET['url'] : null,
)
))
));
}
}