Skip to content

Commit

Permalink
fixup! fix(editor): assets link resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and tiensonqin committed Apr 2, 2023
1 parent 505169a commit d39d49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/handler/assets.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

;; BUG: avoid double encoding from PDF assets
(path/absolute? path)
(if-let [has-encoded-chars? (boolean (re-find #"(?i)%[0-9a-f]{2}" path))]
(if (boolean (re-find #"(?i)%[0-9a-f]{2}" path)) ;; has encoded chars?
;; Incoming path might be already URL encoded. from PDF assets
(path/path-join "file://" (gp-util/safe-decode-uri-component path))
(path/path-join "file://" path))
Expand Down

0 comments on commit d39d49f

Please sign in to comment.