Fix deeplink issue where dialogs would render on top of collections view

This commit is contained in:
Shawn 2023-11-07 17:38:09 -07:00
parent e974ce8ca0
commit 00847778f5
2 changed files with 6 additions and 2 deletions

View File

@ -63,7 +63,7 @@ struct WonderousWidgetView : View {
content.padding(16)
}
.widgetBackground(Color.darkGrey)
.widgetURL(URL(string: "wonderous:///collection"))
.widgetURL(URL(string: "wonderous:///home/collection"))
}
}

View File

@ -39,7 +39,11 @@ final appRouter = GoRouter(
},
routes: [
AppRoute(ScreenPaths.splash, (_) => Container(color: $styles.colors.greyStrong)), // This will be hidden
AppRoute(ScreenPaths.home, (_) => HomeScreen()),
AppRoute(ScreenPaths.home, (_) => HomeScreen(), routes: [
AppRoute('collection', (s) {
return CollectionScreen(fromId: s.queryParams['id'] ?? '');
}),
]),
AppRoute(ScreenPaths.intro, (_) => IntroScreen()),
AppRoute('/wonder/:type', (s) {
int tab = int.tryParse(s.queryParams['t'] ?? '') ?? 0;