[Fixed] Use browser navigation

This commit is contained in:
PartyDonut 2024-10-06 19:01:46 +02:00
parent 69b3a77d17
commit d19fa0ccd0
22 changed files with 210 additions and 156 deletions

View file

@ -154,7 +154,8 @@ class NestedNavigationDrawer extends ConsumerWidget {
bool checkLibrary(BuildContext context, String id) {
try {
return context.routeData.queryParams.isNotEmpty && context.routeData.queryParams.getString('parentId') == id;
return context.router.current.name == LibrarySearchRoute().routeName &&
(context.routeData.queryParams.isNotEmpty && context.routeData.queryParams.getString('parentId') == id);
} catch (e) {
return false;
}