Daniel Weidensdörfer
06/11/2023, 2:16 PMembeddedServer(Netty, port = 8080, host = "127.0.0.1") {
routing {
singlePageApplication {
useResources = true
}
}
}.start(wait = true)
I want to use client side routing in the front end like this:
Link {
to = "/page2"
}
This works when running the front-end only with jsBrowserDevelopmentRun
. How can I get this to work when serving the front-end with ktor? Currently it only changes the url in the browser, leaving the site-content unchanged. When I realod the page, it shows the expected content.