Skip to content

Relative images break when a page is opened directly by URL #2267

Backlog

Description

@zefhemel

Found while checking #1422 on 3.0.

A page that transcludes an image by a relative path shows it correctly when you navigate to the page inside SilverBullet, but not when the page is opened by a full page load (opening its URL directly, or reloading).

Steps

  1. Create b/hello.md containing ![[hello.png]], and put hello.png in b/.
  2. Navigate to b/hello from another page inside SilverBullet: the image shows.
  3. Reload the page, or open /b/hello directly in a new tab.

Expected: the image resolves to b/hello.png.
Actual: it resolves to /.fs/hello.png at the space root, returns 404 and shows nothing, even after the index has finished. Transcluding b/hello from a page in another folder works correctly.

It looks like on a cold load the page's relative image transclusions are resolved before the current page's path is known.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions