In elfinder_filesystemconnector() when the volumes are collected, the paths are handled as relative paths when they do not start with a /. This logic breaks then the path starts with a token. For example, a path of "[mymodule:mytoken]/images" would be handled as a relative path, even though the token in the beginning may resolve to something that starts with /. As result, these token based absolute paths get prefixed with the path of the Drupal files directory path, and do not work as expected.

I think the token substitution needs to happen before this relative directory check is done. I am attaching a patch to address this.

Comments

glekli created an issue. See original summary.

glekli’s picture

glekli’s picture

Issue summary: View changes
ph0enix’s picture

Status: Active » Fixed

Available in the latest build

ph0enix’s picture

Status: Fixed » Closed (fixed)