Hi friends, I want to create a small website consi...
# multiplatform
h
Hi friends, I want to create a small website consisting of 3-4 pages using Compose Multiplatform Kotlin WASM. In order to arrange the navigation I implemented Decompose library. It handles the browsing history, the back stack and adds respective path values in the search line of the browser when switching the pages. However, when I explicitly type the deeplink in the search bar(let's say http://localhost:8080/home) it fails to load the resource. Is there any way to get the path param(in the search line) so I will tell the decompose library to show the respective page?
The application only reacts to http://localhost:8080
a
I think for vanilla Kotlin/JS, for the dev web server I had to create this file: https://github.com/arkivanov/Decompose/blob/master/sample/app-js/webpack.config.d/devServerConfig.js Then take the path in the main function from
window.location.pathname
. But I'm not sure about production. You may ask in #webassembly I guess.
🙌 1
h
Thanks a lot for the answer @Arkadii Ivanov, also for Decompose!
decompose intensifies 1