This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-06
Channels
- # announcements (14)
- # babashka (12)
- # beginners (61)
- # biff (2)
- # calva (16)
- # clj-kondo (22)
- # cljdoc (7)
- # clojure (131)
- # clojure-europe (52)
- # clojure-losangeles (9)
- # clojure-norway (54)
- # clojure-spec (5)
- # clojure-uk (4)
- # clojurescript (18)
- # cursive (14)
- # datomic (19)
- # deps-new (14)
- # emacs (8)
- # events (7)
- # fulcro (6)
- # graphql (3)
- # hyperfiddle (42)
- # instaparse (5)
- # lsp (10)
- # malli (21)
- # nbb (1)
- # off-topic (3)
- # pathom (3)
- # polylith (7)
- # reagent (14)
- # releases (2)
I have some :href "#abc"
on my homepage, however if you go off the home page and then refresh, it resets the actual routing but not the url and hence these no longer function correctly. Is there a way to reset the url on refresh, short of changing the href
to a route-to
? I am using the rad routing from the demo project.
What do you mean by > go off the home page and then refresh ? You navigate to a different page and than hard-reload that page???
Yeah if I hard-reload, it resets the page back to the home page, but not the url ie http://example.com/test on refresh would still be http://example.com/test but the actual content would be http://example.com
If you hard reload on a url then of course the URL stays the same. What the RAD Demo does is that it checks the url and updates routing accordingly, see https://github.com/fulcrologic/fulcro-rad-demo/blob/5e40e596a2fb1922f3c4dc20e944d441d6025c40/src/shared/com/example/client.cljs#L34 Is this somehow not working for you?
I just discussed this in the thread above. Routing in Fulcro is meant to be generic across platforms (native does not have URLs). If you want to integrate with browser-specific features you have to do that separately. RAD is the only library set that has pre-written implementation for that (as a plugin).