joachim-n/drupal-core-development-project

DRUPAL_ROOT value is the symlinked directory, instead of the project location

Closed this issue · 2 comments

shaal commented

Describe the bug

When installing a Drupal website that is based on this project, DRUPAL_ROOT gets the wrong value - /var/www/html/repos/drupal.

To Reproduce

  1. Install a Drupal website based on this project's setup.
  2. using Xdebug, place a breakpoint in web/core/includes/bootstrap.inc, after the line where DRUPAL_ROOT gets value
    define('DRUPAL_ROOT', dirname(__DIR__, 2));
  3. Confirm that DRUPAL_ROOT gets the wrong value of repos/drupal instead of the directory where Drupal project is.

Expected behavior

I expect DRUPAL_ROOT to be set like a regular Drupal website (and not in `/repos/drupal')

Screenshots

Version and configuration information (please complete the following information)

Additional context

Can this be closed? Isn't this basically https://www.drupal.org/project/drupal/issues/1792310?

shaal commented

Yes, it is. Closing.