From ec04fccf0c1f66adb9236b97eddaa6e1b3fa2ead Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 22 Sep 2016 22:28:51 +0300 Subject: [PATCH] Add support for `nil` and keywords as url parameters. --- src/uxbox/main/ui.cljs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/uxbox/main/ui.cljs b/src/uxbox/main/ui.cljs index 9761f9ea4..4f7ea218d 100644 --- a/src/uxbox/main/ui.cljs +++ b/src/uxbox/main/ui.cljs @@ -124,6 +124,13 @@ ["/dashboard/colors" :dashboard/colors] ["/workspace/:project/:page" :workspace/page]]) +(extend-protocol bc/IPathRepr + nil + (-repr [it] "") + + cljs.core.Keyword + (-repr [it] (name it))) + ;; --- Main Entry Point (defn init-routes