Fork me on GitHub
#shadow-cljs
<
2023-05-31
>
oly13:05:02

I am using reitit and shadow is there a nice way to handle routing for development ? something like configure if no extension the serve index.html. basically a SPA where all routes are served from the same file. I am aware of use-fragment option in reitit but this breaks in line page jump links so curious if any one has an alternative option ?

thheller13:05:28

it already does that by default, any path requested will return the index.html

oly13:05:29

so if I go to /mypage/ it should know to open index.html in /resources/public/index.html

thheller13:05:15

can't see your server config, so I'm guessing ... but yes

oly13:05:38

okay grand, just testing I think your correct just noticed the fragment option has change the ajax path so thats why it looks like its not loading, thanks helped me look in the correct place 🙂