diff --git a/lib/main.dart b/lib/main.dart index 4cb3884..48532dc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ final routesUnauthorized = RouteMap(routes: { // routes when user is logged in final routesLoggedIn = RouteMap(routes: { '/': (_) => const MaterialPage(child: HomePage()), - '/new-room': (_) => const MaterialPage(child: NewRoomPage()), + '/add-room/new': (_) => const MaterialPage(child: NewRoomPage()), '/add-room': (_) => const MaterialPage(child: JoinRoomPage()), '/r/:server/:tag/:page?': (info) => MaterialPage( child: RoomPage(info.pathParameters['server'] ?? "", diff --git a/lib/screens/room/join.dart b/lib/screens/room/join.dart index 57d2314..59c8f53 100644 --- a/lib/screens/room/join.dart +++ b/lib/screens/room/join.dart @@ -373,7 +373,7 @@ class _JoinRoomPageState extends State { icon: const Icon(Icons.add), onPressed: () { // create new room - Routemaster.of(context).push("/new-room"); + Routemaster.of(context).push("/add-room/new"); }, tooltip: 'Create Room', ),