Improve public-uri handling

This enables use penpot under subdirectory
This commit is contained in:
Andrey Antukh 2022-09-05 09:41:19 +02:00
parent ee1058950e
commit a1fccd46ff
16 changed files with 73 additions and 58 deletions

View file

@ -8,7 +8,7 @@
(:refer-clojure :exclude [resolve])
(:require
[app.common.uri :as u]
[app.config :as cfg]
[app.config :as cf]
[app.util.browser-history :as bhistory]
[app.util.dom :as dom]
[app.util.timers :as ts]
@ -117,8 +117,7 @@
(let [router (:router state)
path (resolve router rname path-params query-params)
name (or name "_blank")
uri (-> (u/uri cfg/public-uri)
(assoc :fragment path))]
uri (assoc @cf/public-uri :fragment path)]
(dom/open-new-window uri name nil)))))
(defn nav-back