What's the right way to think of URL routing? Say...
# decompose
s
What's the right way to think of URL routing? Say I have a
androidx.compose.material3.BottomAppBar
[using
com.arkivanov.decompose.router.stack.StackNavigation
]; and say one of the components a list component and you click an item it goes to detail component. The URLs I want are, if you click "product" icon in bottom app bar, then
/product
, which shows the list, then click a product and it shows detail at
/product/444
where
444
is the id. Without breaking functionality on Android, iOS, desktop, is this sort of thing doable?
r
I did that in an identical way as deeplinking. Route to details but make sure the backstack has list as the previous entry.
Copy code
navigation.replaceCurrent(NavConfig.MainLanding) // Prepare backstack
navigation.pushNew(deeplink)