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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | invalid_path_when_using_tokens-3032543-2.patch | 1.52 KB | glekli |
Comments
Comment #2
glekli commentedComment #3
glekli commentedComment #4
ph0enix commentedAvailable in the latest build
Comment #5
ph0enix commented