Skip to content

Link path for item-img-preview includes filesystem path #1281

Open
@yatesdr

Description

@yatesdr

Describe the issue
Installed today, getting a lot of "failed to load" when hovering over media in the main admin page. Investigation shows that the link to the media is incorrect, and includes the full filesystem path after the /media/ alias portion. The problem appears to originate in _common.js but it's unclear where the path is being called from.

To Reproduce

  1. Install latest mediaCMS
  2. Upload media
  3. Load main page, log in as admin, and hover over a link.
  4. Observe developer tools in your browser to see url's being generated incorrectly.

Example, when installed at path /home/mediacms.io:
GET https://<server_name>/media//home/mediacms.io/mediacms/media_files/encoded/1/admin/3bdbe5fd65c346b69c8b4c80d4bfddef.tmph4fyd88z.gif

Additional context
Installation was upgraded from v4.6, database was migrated. Might have something to do with it, not sure. Happens universally and is fully repeatable on repeated installs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions