From d482c533d7adf0d1c0d80016c325e15efdf2e334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 00:34:34 +0100 Subject: [PATCH] Refactor initialLocation formatting in GoRouter for improved readability --- b0esche_cloud/lib/main.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b0esche_cloud/lib/main.dart b/b0esche_cloud/lib/main.dart index 8f9bf8a..535f507 100644 --- a/b0esche_cloud/lib/main.dart +++ b/b0esche_cloud/lib/main.dart @@ -20,7 +20,9 @@ import 'package:flutter/foundation.dart' show kIsWeb; import 'package:web/web.dart' as web; final GoRouter _router = GoRouter( - initialLocation: kIsWeb ? web.window.location.pathname + web.window.location.search : '/', + initialLocation: kIsWeb + ? web.window.location.pathname + web.window.location.search + : '/', routes: [ GoRoute(path: '/', builder: (context, state) => const HomePage()), GoRoute(