I know this is probably a stupid question, but wha...
# compose-web
m
I know this is probably a stupid question, but whats with all the hashes(#) in my urls in compose web? is there a way to get rid of those ? im using precompose for navigation. my routes look like this "/landing" and yet for some reason my URL wont show neither the route in it nor will it work without the # in that URL. so im a bit confused here
o
Perhaps, you call this method somewhere - https://github.com/JetBrains/compose-multiplatform-core/blob/ff2a1ce5a86b71e4ba983[…]/wasmJsMain/kotlin/androidx/navigation/BrowserHistory.wasmJs.kt
suspend fun Window.bindToNavigation
If you use precompose for navigation, then I guess you don't need to call that method.
k
url's part after '#' symbol is called fragment https://www.geeksforgeeks.org/components-of-a-url/ it is a common way to have an app routes in uls for Single Page Applications