🔥 Remove automatic path handling on config.

This makes that when you want to use penpot in a prefix,
you will need explicitly set the prefix on the configuration.
This commit is contained in:
Andrey Antukh 2021-04-24 12:12:13 +02:00
parent 170ab9e93b
commit 3b5b25fc86

View file

@ -84,8 +84,7 @@
(def public-uri
(let [uri (u/uri (or (obj/get global "penpotPublicURI")
(str (.-origin ^js location)
(.-pathname ^js location))))]
(.-origin ^js location)))]
;; Ensure that the path always ends with "/"; this ensures that
;; all path join operations works as expected.
(cond-> uri