Skip to content

Incorrect file path handling in PDF viewer interface #127

@uktamka

Description

@uktamka

Extension

Something else

Describe the Bug

I encountered a bug related to file paths in the PDF viewer interface extension. The issue occurs when attempting to open a PDF file after setting the PUBLIC_URL variable to /directus.

The PDF file does not load due to incorrect file paths being used in the interface. This is happening in the following code segment:
Code

To Reproduce

  1. Set PUBLIC_URL=/directus.
  2. Run Directus.
  3. Install the PDF viewer interface extension.
  4. Upload a PDF file.
  5. Open the PDF using the PDF viewer interface.

Directus Version

v11.3.5

Hosting Strategy

Self-Hosted (Docker Image)

Metadata

Metadata

Assignees

No one assigned

    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