diff --git a/src/Handler.php b/src/Handler.php index 8590848a51d80542dc288bb3e93072527e848d29..f201302fc74de1a41bc0a62d2e681d7e85330f58 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -343,7 +343,7 @@ class Handler extends BaseHandler { } $corePath = $installationManager->getInstallPath($drupalCorePackage); // Directory where Drupal's index.php is located. - $webRoot = dirname($corePath); + $webRoot = basename(dirname($corePath)); } $this->config->setValue('webRoot', $webRoot, FALSE); @@ -426,7 +426,7 @@ class Handler extends BaseHandler { if (isset($def['link']) && ($def['link'] !== $settingsPath)) { $link = $def['link'] . '/' . $filename; if (!$fs->exists($link)) { - $rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $def['link']), 3, -1); + $rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $link), 3, -1); $fs->symlink($rel, $link); } }