Skip to content

“Copy File Path” doesn't work correctly for Media Sources #15326

Open
@SnowCreative

Description

@SnowCreative

Bug report

Summary

Right-clicking and selecting “Copy File Path” for a file while viewing in a media source other than “Filesystem” produces an unusable file path.

Observed behavior

The copied file path is only partial; it does not include any enclosing folders. So, for example, when clients who use this method to grab the URL for a PDF on their site through a media source called "documents", linked to a "documents" folder on the server, they end up with "filename.pdf" instead of "documents/filename.pdf".

Expected behavior

This action should prepend the "basePath" from the Media Source settings, so that the resulting copied path should look exactly like it would be when using a TV to fetch a file name. In other words, users should end up with a path that, when added to their website's domain name, forms a complete link to that file.

Environment

All versions of MODX

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposal about improvement aka RFC. Need to be discussed before start implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions