Skip to content

[Bug] WSL : Failed to load resource: net::ERR_FILE_NOT_FOUND #4563

Closed

Description

@jyte

Description

Hi,

I have 2 use cases which cause me issues but are likely due to the same underlying problem.

Use case 1:

With windows explorer, I can browse my WSL2 file system. Then, from the explorer, I can open a markdown file with marktext, and it opens it up just fine. However, images won't load.

Errors in developer console show things like :
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///wsl.localhost/Ubuntu-24.04/home/xxx/img/my_image.png?msec=1781781520316

Use case 2:

If I try to open a folder, I can go to \\wsl.localhost\Ubuntu-24.04\xxx\my_folder.

It opens without error, however, I can only see the name of the top folder, no file are listed bellow and says "Empty project"

Steps to Reproduce

Have a wsl2 linux ready.

Create a markdown file in which you link to an image next to it with something like ![title](./image.png)

Use case 1: Open that markdown file in wsl2 with marktext.

Use case 2: Open the parent folder of the markdown file.

Expected Behavior

Use case 1: Images are displayed

Use case 2: Files in folder are displayed

Actual Behavior

Use case 1:

Image

Use case 2:

Image

Screenshots / Logs

No response

Operating System

Windows

MarkText Version

0.19.0

OS Version

Windows 11

Reproducibility

  • I can reliably reproduce this issue

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