mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 13:28:32 +02:00
✨ Improve 404 and add broken link static page on viewer.
This commit is contained in:
parent
15991d0226
commit
85a1c61880
7 changed files with 89 additions and 73 deletions
|
@ -42,10 +42,13 @@
|
|||
(if-let [conform (get-in match [:data :conform])]
|
||||
(let [spath (get conform :path-params ::any)
|
||||
squery (get conform :query-params ::any)]
|
||||
(-> (dissoc match :params)
|
||||
(assoc :path-params (us/conform spath (get match :path-params))
|
||||
:query-params (us/conform squery (get match :query-params)))))
|
||||
match)))
|
||||
(try
|
||||
(-> (dissoc match :params)
|
||||
(assoc :path-params (us/conform spath (get match :path-params))
|
||||
:query-params (us/conform squery (get match :query-params))))
|
||||
(catch :default _
|
||||
nil)))
|
||||
match)))
|
||||
|
||||
(defn on-navigate
|
||||
[router path]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue