You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative images break when a page is opened directly by URL #2267
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
Create b/hello.md containing ![[hello.png]], and put hello.png in b/.
Navigate to b/hello from another page inside SilverBullet: the image shows.
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