mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 18:48:31 +02:00
✨ Improve public-uri handling
This enables use penpot under subdirectory
This commit is contained in:
parent
ee1058950e
commit
a1fccd46ff
16 changed files with 73 additions and 58 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue