From 3b5b25fc86f7c39fa4ce227d85917fdabbe3631c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 24 Apr 2021 12:12:13 +0200 Subject: [PATCH] :fire: 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. --- frontend/src/app/config.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/config.cljs b/frontend/src/app/config.cljs index 494f911c7a..5f801d155f 100644 --- a/frontend/src/app/config.cljs +++ b/frontend/src/app/config.cljs @@ -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