This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-20
Channels
- # aleph (2)
- # announcements (4)
- # aws (3)
- # beginners (141)
- # calva (9)
- # clj-kondo (1)
- # clojure (3)
- # clojure-boston (2)
- # clojure-brasil (1)
- # clojure-houston (1)
- # clojure-italy (4)
- # clojuredesign-podcast (1)
- # clojurescript (22)
- # cursive (2)
- # data-science (1)
- # emacs (26)
- # fulcro (22)
- # juxt (1)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # reagent (10)
- # reitit (6)
- # shadow-cljs (9)
- # spacemacs (2)
- # tools-deps (29)
- # yada (1)
Heylo all, would anyone have advice on how to have to url for frontend routing display like this
instead of the default
when clicking <a>
tags the page is refreshed unless I include the #
Interim fix I added this line in the middleware (.replaceState (.-history js/window) (.now js/Date) "title" uri)
@justin909 you need to do two things,
Set :use-fragment
false when you start the router
(rfe/start!
routes
on-navigate
{:use-fragment false})
Also you have to configure your backend server to return index.html
for routes like
. Here's an example how to do it for all routes https://github.com/metosin/reitit/blob/master/examples/frontend/src/backend/server.clj 4
@y.khmelevskii here is the relevant spec code for extracting the name for the JSON Schemas: https://github.com/metosin/spec-tools/blob/master/src/spec_tools/json_schema.cljc#L278-L284
@U055NJ5CC works great, thank you!