|
|
@@ -1458,10 +1458,9 @@
|
|
|
(let [repo (state/get-current-repo)
|
|
|
repo-dir (config/get-repo-dir repo)
|
|
|
;; Hack for path calculation
|
|
|
- path (str "./" (string/replace path "../" "/"))
|
|
|
+ path (string/replace path #"^(\\.\\.)?/" "./")
|
|
|
full-path (path/path-join repo-dir path)
|
|
|
data-url? (string/starts-with? path "data:")]
|
|
|
- (prn ::make-asset-url full-path path)
|
|
|
(cond
|
|
|
data-url?
|
|
|
path ;; just return the original
|