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
Bug: Assets URL built as assets://home/... (missing slash) — resolve-assets-url fails with "Unknown assets url" #1231
Note the URL is assets://home/... with only two slashes. Since resolve-assets-url strips the assets:// prefix and then requires the remaining path to start with / (see the handler in src/electron/electron/core.cljs), this URL is treated as unknown and the warning is logged. The URL should be assets:///home/mschiff/... (three slashes).
So the bug appears to be in the caller constructing the assets URL without the leading / in the path part.
Reproduce the Bug
Add an asset (e.g. an image) to a graph (drag & drop into a page or via /Upload)
Open the developer console
Observe: :electron.core/resolve-assets-url Unknown assets url assets://home/... is logged (note: only two slashes after assets:)
Expected Behavior
The asset URL should be constructed as assets://<absolute-path> i.e. assets:///home/..., so that the protocol handler resolves it correctly and no "Unknown assets url" warning is logged.
Screenshots
No response
Files
No response
Browser, Desktop or Mobile Platform Information
Logseq 2.0.1-alpha+nightly.20260917, Linux Desktop
Additional Context
DB beta version. Message appears consistently for every asset added.
Are you willing to submit a PR? If you know how to fix the bug.
Fixed in logseq/logseq#13898 (fix(assets): non-media assets, assets:// paths on Linux, theme before first paint, published pages icons). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
Activity
yuxi-liu-wired commentedon Oct 28, 2026
Fixed in logseq/logseq#13898 (fix(assets): non-media assets, assets:// paths on Linux, theme before first paint, published pages icons). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…
fix(electron): resolve assets:// URLs whose host swallowed the leadin…