mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 22:24:09 +00:00
fix: assets not loading on published graphs that arent under /
This commit is contained in:
@@ -1431,7 +1431,8 @@
|
||||
"Make asset URL for UI element, to fill img.src"
|
||||
[path] ;; path start with "/assets"(editor) or compatible for "../assets"(whiteboards)
|
||||
(if config/publishing?
|
||||
path
|
||||
;; Relative path needed since assets are not under '/' if published graph is not under '/'
|
||||
(string/replace-first path #"^/" "")
|
||||
(let [repo (state/get-current-repo)
|
||||
repo-dir (config/get-repo-dir repo)
|
||||
;; Hack for path calculation
|
||||
|
||||
Reference in New Issue
Block a user