Problem/Motivation
When a file uri is defined to exist directly under "public://" directory, there is a weird behavior. A "web/public:" directory is being created!
Steps to reproduce
# Create an article with a photo "photo.jpg";
# Export the content;
# Manually edit the exported yaml file for the file to have the uri with value "public://photo.jpg";
# Install from scratch and enable default_content to have the importation running;
# Check that a "web/public:" directory was created.
Proposed resolution
Use the drupal dirname method instead of the PHP dirname. This alone will fix the problem.
Issue fork default_content-3501897
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dxvargas commentedI have created a MR with some fails but (as I understand) they are unrelated and the MR can be merged.
Asking for review.
Comment #4
saidatomGreat! Looks good, moving to RTBC.
Comment #5
berdirThanks for the fix. Pretty sure I've seen this too and was wondering where it came from.
Added to merge train.