Fork me on GitHub

Hi there. I'm having some problem with routing which I'm not sure what's going on. So I have a simple Root -> [Login Main] setup that when I hit localhost:8000 it will bring me to the Login page. However the URL stays the same, and going to localhost:8000/login returns Not found. Missing index.html.. Would appreciate any ideas of why something like this might happen. Thanks 🙂

Jakub Holý (HolyJak)08:01:01

Dynamic routing has nothing to do with urls, though you can connect the two. Look at the RAD demo and how it uses its history api wrapper, start from client.cljs


Thanks 🙂

Jakub Holý (HolyJak)08:01:33

For the other error - again look how RAD demo routes every path to its index page. What is your app based on? How do you run the server?


Just normal shadow-cljs

Jakub Holý (HolyJak)08:01:15

You mean shadow-cljs dev server? Then you need to look at how it does routing. This suggests you are basing your code neither on fulcro-template nor fulcro-rad-demo, correct?


Yes I was using the default Person example from the book and started building on top of it.

Jakub Holý (HolyJak)08:01:38

I'd recommend starting with fulcro-template as it is already wired correctly


So I was thinking about using those two but I need to get my hands dirty so I can understand Fulcro a bit more.


Will do thanks 👍

Jakub Holý (HolyJak)08:01:49

You need a good deal of plumbing that's easy to get wrong.